Question : I need a valadation control on a textbox that compare a change in name (Attendee Name)

 I need a to valadate / compare a change in name from '(Attendee Name)' to a first & last Name
(Attendee Name) this is the default text in the textbox. when a use enter a first & last name the valadation is ok. But if the user does not enter in the textbox and the text remain as (Attendee Name) the valadtaion fails ~ You must enter a Name."

 
                r ID="valName" Runat="server" ControlToValidate="txtAddUserTypeName" ValidationGroup="EventRegAttendee"
                        CssClass="NormalRed" Display="Dynamic" EnableViewState="False"
                        ErrorMessage="You must enter a Name." />

Answer : I need a valadation control on a textbox that compare a change in name (Attendee Name)

Simply set InitialValue property of your RFV control to your initial value of your textbox like below

   
                ID="valName" Runat="server" ControlToValidate="txtAddUserTypeName"
                ValidationGroup="EventRegAttendee"
                        CssClass="NormalRed" Display="Dynamic" EnableViewState="False"
                        ErrorMessage="You must enter a Name."
                        InitialValue="(Attendee Name)" />

Second Option is TextBoxWaterMark Control:
Random Solutions  
 
programming4us programming4us