Page Lifecycle ASP.Net Tutorial

<%@ Page Language="vb" %>

   
      IsValid property example
      
         Sub Page_Load()
            If IsPostBack Then
               Page.Validate()
               If Page.IsValid Then
                  myMessage.Text = "Page is valid."
               Else
                  myMessage.Text = "Page is not valid."
               End If
            End If
         End Sub
      
   

   
      Enter your name:
      
               id="rfvName"
         controltovalidate="name"
         enableclientscript="false"
         errormessage="Required!"
         runat="server"/>