Validation By Control ASP.Net

<%@ Page Language=VB Debug=true %>


Checking Against an Initial Value with a RequiredFieldValidator Control





    id="txtName" 
    text="Enter Your Name"
    runat=server 
/>
    id="rfvName1"
    controltovalidate="txtName"
    InitialValue="Enter Your Name"
    display="Dynamic"
    font-name="Verdana"
    font-size="10pt"
    forecolor="red"
    runat=server
>
You must enter your name!

    id="rfvName2"
    controltovalidate="txtName"
    display="Dynamic"
    font-name="Verdana"
    font-size="10pt"
    forecolor="red"
    runat=server
>
You must enter your name!




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