Friday, June 15, 2012

Remote, Client-side Validation ASP.NET MVC 3

ASP.NET MVC allows one to provide remote clientside validation. In this example on GitHub, in the validation controller, I add validation for the username and email. Also, this uses the default membership class, so it is more compatible.

Remember to fill in your first and last name so the client validation can work.
It will first try [FIRSTNAME].[LASTNAME] If that also is taken, it will display [USERNAME][LOWEST INTEGER POSSIBLE]
Affected fields:
-username
-email



Find it here: https://github.com/arithehun/MVC-Remote-Validation-Intelligence-

No comments:

Post a Comment

This blog is meant to educate and inspire greater development and learning. Please do not post any derogatory comments that may risk harming the ethos of this blog.