Validation ASP.Net Tutorial

<%@ Page Language="VB" %>

   Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs)
        Label1.Text = "Page is valid!"
   End Sub



    RequiredFieldValidator


    
    

        My Initial Value
                                            Runat="server" 
                                    ErrorMessage="Please change the value of the textbox!" 
                                    ControlToValidate="TextBox1" 
                                    InitialValue="My Initial Value">
        
        
                 OnClick="Button1_Click" />