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


    
    

        
           Select a profession
           Programmer
           Lawyer
           Doctor
           Artist
        
                                            runat="server" 
                                    ErrorMessage="Please make a selection"
                                    ControlToValidate="DropDownList1"
                                    InitialValue="Select a profession">
        
        
                 OnClick="Button1_Click" />