I am having touble redirecting to a view after posting a bootstrap modal form. I have tried just about everything found on the web and still no love. Can some one please help? The following is the source I am using.
Model:
public class TestRecord
{
public int Id { get; set; }
[Required(ErrorMessage="Test Column is a required field.")]
[MaxLength(50, ErrorMessage="The maximum length for Test Column is 50")]
public string TestColumn { get; set; }
}
Controller:
public class TestRecordController : Controller
{
private GrasshopperLCContext database = new GrasshopperLCContext("GrasshopperLCSQLServerExpress");
public ActionResult Index()
{
return View();
}
public ActionResult Details(int id)
{
return ...
Go to the complete details ...