Link to home
Start Free TrialLog in
Avatar of Codeaddict7423
Codeaddict7423Flag for United States of America

asked on

asp.net c# textox_textchanged not firing requiredfieldvalidator on client side

Hello,

I have a textbox with a textbox_TextChanged event (empty at this time)

My *.aspx code is as follows:

 <asp:TextBox ID="txtGroupName" runat="server" Width="500" MaxLength="500" OnTextChanged="txtGroupName_TextChanged" AutoPostBack="True" CausesValidation="True" ValidationGroup="TCUserEntry" OnKeyDown="TextChanged(this)">


                </asp:TextBox>&nbsp;&nbsp;<span style="color: red">*</span>&nbsp; &nbsp;&nbsp;  
                     
                     <asp:RequiredFieldValidator ID="RFV_GroupName" ControlToValidate="txtGroupName" runat="server" ErrorMessage="Group Name is Required" Display="Dynamic" ValidationGroup="TCUserEntry" SetFocusOnError="true" TabIndex="0"></asp:RequiredFieldValidator>

========

How do I trigger the required field validator control when the user tabs away from this control?

Thank you in advance.

Luis
ASKER CERTIFIED SOLUTION
Avatar of jitendra patil
jitendra patil
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Codeaddict7423

ASKER

Thank you sir.