Sasi Reddy

Sasi Reddy

  • NA
  • 346
  • 225.5k

Partial Views with Validations

Feb 8 2014 2:05 AM
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)