Custom Validator

  • Thread starter Thread starter Deepak Mehta
  • Start date Start date
D

Deepak Mehta

I m a newbie to ASP.net

I wanna allow user to input only A-Z,a-z,0-9 and a dot(.). So what
should i do...I wanna know how custom validator works...plz
help..thanks..
 
Hi Deepak,

You dont need to go for a custom validator. A regular expression validator
will do the job. Just have a look at this blog. The best you can ever find
about regular expressions. After going through it, you can write regular
expression like a pro.. No Kidding.

http://geekswithblogs.net/brcraju/articles/235.aspx

After writting your regular expression, if you want to test it then plz visit
http://www.regexplib.com/RETester.aspx

There are a couple of other links, which area good read..
http://msdn.microsoft.com/library/d...onregularexpressionvalidatorcontrolsample.asp

There are other tools which can be used for generating and testing... like..
http://www.gotdotnet.com/workspaces/workspace.aspx?id=01e0dfb7-0182-45cd-94f7-2ed2df2504a9
http://www.c-sharpcorner.com/Code/2003/March/RegularExpValidator.as
http://www.gotdotnet.com/Community/...mpleGuid=c712f2df-b026-4d58-8961-4ee2729d7322

HTH,

Need any help, do post a msg back...


Happy Coding
 
Back
Top