I am having trouble displaying validation summary, I only want to display errors in validation summary, not beside the field. In my view i have,
@Html.ValidationSummary()
@Html.ValidationMessageFor(m =>m.Name)
in my controller i have
ModelState.AddModelError("Name",
"name is required");
Am i not supposed to get a validation error message? at the top? I don't get what i am missing...
I am also including these script files.. jquery.validate.min.js jquery.validate.unobtrusive.min.js