Text Form Validation in ASP.Net

In this article I am going to explain how to validate a form by masking its textbox, if you are development any source of ASP application it is really important to validate texts fields. In this tutorial, I’m going to show you how to mask a form the most simple way using jQuery and a MASKED INPUT PLUGIN that you can download here. It is really easy to use, only follow the next steps.

First: once you download the plugins and also the JQuery, we need to make reference to this files.


Second: in this case is a login form that we need to access only by phone number, look like this.

Third: now we need this code to create a mask “(###) ###-####”.


Fourth: to validate before do something we need to add this code in the button, this way we can make sure that the information is correct.


Fifth: Save the changes and that’s it! Your form will now have a validation feature!

This Concludes Text Form Validation in ASP.Net

Looking for quality Windows Hosting? Look no further than Arvixe Web Hosting!

Happy Hosting!

Rodolfo Hernandez

Tags: , , , , , , , , , , , , , | Posted under ASP .NET 3.5, ASP .NET 4.0, DotNet/Windows Hosting | RSS 2.0

Author Spotlight

Rodolfo Hernandez

I like photography and reading books. Currently working for Arvixe as Elgg Community Liaison. Elgg Security Expert Web Security Expert CEO of UDP SW Social Web

Leave a Reply

Your email address will not be published. Required fields are marked *