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 value" 
                                    ControlToValidate="TextBox1"
                                    InitialValue="My Initial Value"/>
                                            Runat="server"
                                    ErrorMessage="Do not leave empty" 
                                    ControlToValidate="TextBox1">
        
        
                 OnClick="Button1_Click" />