Regular Expression for Website in Textbox in Asp.net using C#

Posted by Unknown On Tuesday, 19 March 2013 0 comments

<asp:RegularExpressionValidator ID="RegularExpressionValidator3" runat="server" ErrorMessage="Enter valid website URL" ControlToValidate="TextBox5" ValidationGroup="val1" ValidationExpression="(http|https)://([\w-]+\.)+[\w-]+(/[\w- ./?%&=]*)?"></asp:RegularExpressionValidator>

0 comments:

Post a Comment