Validation By Control ASP.Net

<%@ Page Language=VB Debug=true %>
<%@ Import Namespace="System.Data" %>




RequiredFieldValidator Control Sample Page







    id="lblMessage"
    runat="server"
    Font-Bold="True"
    Text="Name"
/>
    id="txtName" 
    Columns="25"
    MaxLength="30"
    runat=server 
    Text="Name"
/>
    id="rfvName"
    ControlToValidate="txtName"
    InitialValue="Name"
    Display="Dynamic"
    Font-Name="Verdana"
    Font-Size="10pt"
    runat=server
>
You must enter your name!




    id="lblMessage2"
    runat="server"
    Font-Bold="True"
    Text="Name 2"
/>
    id="txtName2" 
    Columns="25"
    MaxLength="30"
    runat=server 
    Text="Name"
/>
    id="rfvName2"
    ControlToValidate="txtName2"
    InitialValue="Name"
    Display="Dynamic"
    Font-Name="Verdana"
    Font-Size="10pt"
    runat=server
>
You must replace name with your name!

    id="rfvName3"
    ControlToValidate="txtName2"
    Display="Dynamic"
    Font-Name="Verdana"
    Font-Size="10pt"
    runat=server
>
You must enter a name!




    id="butOK"
    text="OK"
    Type="Submit"
    runat="server"
/>