MVC3 Razor JQuery client side validation with an additional alert box
问题 I am being asked to create a login form that when the user input doesn't pass validation it pops an alert box. I have everything wire up using the model based validation. ex: public class LogonViewModel { [Required( ErrorMessage = "User Name is Required")] public string UserName { get; set; } [Required( ErrorMessage = "Password is required")] public string Password { get; set; } } I have a validation summary on the page: Html.ValidationSummary() I would like the summary to be on the page just