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


    
    

        
                                            Runat="server" 
                                    Text="Required!"
                                    ErrorMessage="Required!" 
                                    ControlToValidate="TextBox1">
        
        
                 OnClick="Button1_Click" />