By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,963 Members | 1,825 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,963 IT Pros & Developers. It's quick & easy.

Validation

P: 57
hi....i wann to use validation vd my few textbox...where as per user insert value....i.e if i wann in a text box i wann tht user insert only numeric, in another textbox user insert charactor, and anohter textbox user insert either charactor or numeric or both, which validation i used either seperate of single..and whtr the code of tht i use to do the same...i m using asp.net2.0 vd c#...plz help me.

Thnx.
Apr 24 '07 #1
Share this Question
Share on Google+
1 Reply


prabunewindia
100+
P: 199
hi friend,
u can use regular expression validatr for this.
to numeric only put this in expression to validate property=> [0-9]*
for char only==> [a-z]*[A-Z]* //for upper case & lower
for either ==> [0-9]*[a-z]*[A-Z]*
plz try


hi....i wann to use validation vd my few textbox...where as per user insert value....i.e if i wann in a text box i wann tht user insert only numeric, in another textbox user insert charactor, and anohter textbox user insert either charactor or numeric or both, which validation i used either seperate of single..and whtr the code of tht i use to do the same...i m using asp.net2.0 vd c#...plz help me.

Thnx.
Apr 24 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.