Regular Expression Validation
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
How to validate pin code of india and fax through regular expression validator.
-
How to validate pin code of india and fax through regular expression validator.
for pin code,You can use like this <asp:TextBox ID="txtPincode" runat="Server" Columns="40" /> <asp:RegularExpressionValidator ID="revPincode" runat="server" ControlToValidate="txtPincode" ErrorMessage="enter correct pincode" validationexpression="^.+\@.+\..+$" Display="static" SetFocusOnError="true"></asp:RegularExpressionValidator> Check the links for more [^]"> [^]"> You will get a lot from any begginers book on regular expressions too.
Cheers!! Brij