In this demo, we take advantage of the unobtrusive client validation introduced in ASP.NET MVC and apply it to a static HTML page.

Once you pass the client validation rules, note that we also support validation happening on the server. If there are any validation errors, we serialize the model state to JSON and apply the validation back on the client.

After submitting a valid comment, try typing in an author that's more than 10 characters long.

New Comment