Skip to content
Loading
How to use RegularExpressionValidator GridView Fields in ASP
  • Manav Pandya
    Hello
     
    You can use  textbox or any other control inside gridview like :
     
    1. "server" ID="emailValidator"   
    2.   ControlToValidate="txtEmail" ErrorMessage="Email Is Not Valid !!!"   ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*" Display="Dynamic">  
    3.   
    For more reference please find following detail :
     
    https://www.regular-expressions.info/dates.html
     
    With All available options : 
     
    https://msdn.microsoft.com/en-us/library/ff650303.aspx 
     
    I hope it helps
     
    Thanks 
    +1