Avatar of Codeaddict7423
Codeaddict7423
Flag 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
ASP.NET.NET Programming

Avatar of undefined
Last Comment
Codeaddict7423

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
jitendra patil

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Codeaddict7423

ASKER
Thank you sir.
Your help has saved me hundreds of hours of internet surfing.
fblack61