Validation By Control ASP.Net

<%@ Page Language="C#" %>


    Show Summary Popup


    
    

    
            id="ValidationSummary1"
        ShowMessageBox="true"
        ShowSummary="false"
        Runat="server" />
    
            id="lblFirstName"
        Text="First Name:"
        AssociatedControlID="txtFirstName"
        Runat="server" />
    
            id="txtFirstName"
        Runat="server" />
            id="reqFirstName"
        ErrorMessage="First Name is required"
        ControlToValidate="txtFirstName"
        Display="None"
        Runat="server" />       
    
    
        
            id="lblLastName"
        Text="Last Name:"
        AssociatedControlID="txtLastName"
        Runat="server" />
    
            id="txtLastName"
        Runat="server" />
            id="reqLastName"
        ErrorMessage="Last Name is required"
        ControlToValidate="txtLastName"
        Display="None"
        Runat="server" />       
    
    
            id="btnSubmit"
        Text="Submit"
        Runat="server" />