MVC2 Client Validation isn't working when getting form from ajax call
- by devlife
I'm trying to use MVC2 client-side validation in a partial view that is rendered via $.get. However, the client validation isn't working. I'm not quite sure what the deal is.
[Required(ErrorMessage = "Email is required")]
public string Email { get; set; }
<% using ( Ajax.BeginForm( new AjaxOptions { Confirm = "You sure?" } ) ) { %>
<%:…