1
Reply

Partial Views with Validations

Sasi Reddy

Sasi Reddy

Feb 8 2014 2:05 AM
738
public ActionResult VehicleLoanBasicDetailsSave(FormCollection form)
{
if (form["nameofapplicant"].Trim().Length == 0)
ModelState.AddModelError("Name", "Name is required");
return PartialView("_VehicleLoanBasicDetails");
}
In controller ,I wrote validations like that.But i need to display that errors .Can u tell me  how to display the errors 

Answers (1)