相关代码 |
|
Sub Button_Click( s As Object, e As EventArgs ) If IsValid Then Response.Redirect( "thankyou.aspx" ) End If End Sub RegularExpressionValidatorWeb.aspx Enter the address of your homepage: id="txtHomepage" Columns="50" Runat="Server"/> ControlToValidate="txtHomepage" Display="Dynamic" Text="Invalid URL!" ValidationExpression="http://\S+\.\S+" Runat="Server" /> Text="Submit" OnClick="Button_Click" Runat="Server"/>
相关资源 |
|