Sub Button_Click( s As Object, e As EventArgs )
If IsValid Then
Response.Redirect( "thankyou.aspx" )
End If
End Sub
RegularExpressionValidatorIgnoreCase.aspx
Enter the address
of your homepage:
id="txtHomepage"
Columns="50"
Runat="Server"/>
ControlToValidate="txtHomepage"
Display="Dynamic"
Text="Invalid URL!"
EnableClientScript="False"
ValidationExpression="(?i:http://\S+\.\S+)"
Runat="Server" />
Text="Submit"
OnClick="Button_Click"
Runat="Server"/>