Site Meter Asp.Net-Csharp,Asp,Ado.Net,Ado,Micosoft,Visualstudio,Visual webgui: Validation control in asp.net

Thursday, October 22, 2009

Validation control in asp.net

RegularExpressionValidator-To accept only numbers

ValidationExpression="[0-9]*">

RegularExpressionValidator-To accept only characters not numbers.

ValidationExpression="[a-z]*[A-Z]*">

RegularExpressionValidator- Expression to get minimum value and maximum value from the user

ValidationExpression="^([\S\s]{1,7})$">

No comments:

Post a Comment