void btnSubmit_Click(Object Sender, EventArgs E)
{
// Checks to see if all the
// controls on the page are valid!
if (Page.IsValid) {
// Do Something
}
}
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