ASP and VBScript tht thing ar?
<%@ Page Language="VB" %>
Sub btnSubmit_Click(Sender As Object, E As EventArgs)
' Checks to see if all the
' controls on the page are valid!
If Page.IsValid Then
' Do Something
End If
End Sub
ASP.NET Form Validation Sample - Validation Summary
Note that this form doesn't actually do anything
except illustrate the Validators involved.
method="post" runat="server">
Enter Your Name:
ControlToValidate="txtName"
ErrorMessage="Please enter your name!
"
runat="server">
***
Enter Your Age:
ControlToValidate="txtAge"
ErrorMessage="Please enter your age!
"
Display="Dynamic"
runat="server">
***
ControlToValidate="txtAge"
Type="Integer"
MinimumValue="21"
MaximumValue="100"
ErrorMessage="You need to be over 21 and under 100!
"
Display="Dynamic"
runat="server">
***
onClick="btnSubmit_Click" runat="server" />
HeaderText="There was an error submitting your form.
Please check the following:"
DisplayMode="BulletList"
runat="server" />