Validation ASP.Net Tutorial

<%@ page language="C#" %>




    Untitled Page


    
        

First form


        
            
            
                             id="RequiredFieldValidator1" 
                 runat="server" 
                 display="Dynamic"
                 setfocusonerror="True" 
                 validationgroup="firstform" 
                 controltovalidate="TextBox1">***
            
            
        
        

Second form


        
            
            
                            id="RequiredFieldValidator2" 
                runat="server" 
                display="Dynamic"
                setfocusonerror="True" 
                validationgroup="secondform" 
                controltovalidate="TextBox2">***