Asp.net validation error message to change labels text

Nziwypvszakax

New Member
I am using asp.net validation controls for validating user input. What i want is to change the label text with the error message generated by the validation control.\[code\]<asp:Label ID="Label1" runat="server" Text="Whats your name"></asp:Label><asp:TextBox ID="nameB" Width="322px" Height="30px" runat="server"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator1" ValidationGroup="business" runat="server" ErrorMessage="Please tell us your name." ControlToValidate="nameBuisness" CssClass="errMsg" Display="Dynamic"></asp:RequiredFieldValidator>\[/code\]Thank you.
 
Back
Top