Answered by:
ValidatorCalloutExtender not working as required

Question
-
User-1300886125 posted
Hi All,
I am working on ValidatorCalloutExtender.
I have tried using below code and while throwing error message in callout its just says * not the error message entered in RequiredField Validator.
The textbox and validaion controls are inside GridVIew Footer template
See the code below.
<FooterTemplate> <asp:TextBox runat="server" ID="txtPONumberF"></asp:TextBox> <asp:RequiredFieldValidator OnPreRender="Req_PreRender" ID="Req1" runat="server" Display="None" ControlToValidate="txtPONumberF" ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="PO">*</asp:RequiredFieldValidator> <ajaxToolKit:ValidatorCalloutExtender PopupPosition="BottomLeft" runat="server" TargetControlID="Req1" ID="Validator1"> </ajaxToolKit:ValidatorCalloutExtender> </FooterTemplate>
Please advice where it goes wrongThanks in Advance
PradeepKumar Gnanavel
Monday, February 8, 2010 3:55 AM
Answers
-
User1335925338 posted
Hi pradeepkumar.gnanavel,
Please set the same ValidationGroup to the three controls.
Some related threads:
http://forums.asp.net/p/1403538/3054332.aspx#3054332
http://forums.asp.net/p/1490016/3506594.aspx#3506594You can also try the Ajax Library:
http://www.asp.net/ajaxlibrary/HOW%20TO%20Use%20the%20ValidatorCallout%20Control.ashxBest regards,
Zhi-Qiang Ni
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, February 10, 2010 3:13 AM
All replies
-
User-1364446067 posted
Instead of placing the '*' where you have placed, Assign it to 'Text' property of RequiredFieldValidator. Then ValidatorCallOutExtender will be working fine then, hopefully.
--
Mark as answer, if it answers you..
--
Monday, February 8, 2010 4:39 AM -
User-1300886125 posted
Hi,
I have tried using that but still same message only * its showing in callout
See the changed code below
<asp:TextBox runat="server" ID="txtPONumberF"></asp:TextBox> <asp:RequiredFieldValidator ID="Req1" runat="server" Display="None" ControlToValidate="txtPONumberF" ErrorMessage="User Name is required." ToolTip="User Name is required." ValidationGroup="PO" Text="Required"></asp:RequiredFieldValidator> <ajaxToolKit:ValidatorCalloutExtender PopupPosition="BottomLeft" runat="server" TargetControlID="Req1" ID="Validator1"> </ajaxToolKit:ValidatorCalloutExtender>
Please advice...
Monday, February 8, 2010 8:12 AM -
User-1364446067 posted
Few days ago i have same kind of problem to some extent. Validator Call Out was showing me the '*' as error message, even after changing the message.
then instead of refreshing the page, i cleaned my application then rebuilt it again and reran it. That worked for me..
Have you testes it in this way?
--
Mark as answer, if it answers you..
--
Monday, February 8, 2010 8:23 AM -
User-1300886125 posted
Yes i did that
but still the same problem issue.
Even i closed the app and restarted still same issue.
anyother thing i am missing in this...
Monday, February 8, 2010 8:40 AM -
User-1364446067 posted
hmm now thats strange. no i don't think you are missing anything that could cause this behaviour.
which ajaxtoolkit are u using?
Monday, February 8, 2010 9:15 AM -
User-1300886125 posted
I am using AjaxControlToolKit.dll 3.0.30930.0
Tuesday, February 9, 2010 2:12 AM -
User-1364446067 posted
ok. I m using 1.0.20229.0
May be your's one has this bug, because the one i have works fine with your code.
--
Mark as answer, if it answers you..
--
Tuesday, February 9, 2010 2:25 AM -
User-1300886125 posted
Thanks for your time
Let me check how to resolve this.
Tuesday, February 9, 2010 8:13 AM -
User1335925338 posted
Hi pradeepkumar.gnanavel,
Please set the same ValidationGroup to the three controls.
Some related threads:
http://forums.asp.net/p/1403538/3054332.aspx#3054332
http://forums.asp.net/p/1490016/3506594.aspx#3506594You can also try the Ajax Library:
http://www.asp.net/ajaxlibrary/HOW%20TO%20Use%20the%20ValidatorCallout%20Control.ashxBest regards,
Zhi-Qiang Ni
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Wednesday, February 10, 2010 3:13 AM -
User-1300886125 posted
Hi Zhi-Qiang Ni
I have tried the option which u said even than it doesn't worked for me :(
Is there any issue with Ajax dll versions.
Because one of the user is working with version 1.0 and i am working with version 3.0
It works in 1.0 where as not in 3.0
Thanks in Advance
PradeepKumar Gnanavel
Thursday, February 11, 2010 4:58 AM -
User2124956612 posted
Hi Please Refer this URL:
http://aspdotnet-learning.blogspot.in/2013/09/explain-how-to-use-ajax-validator.html
Sunday, January 26, 2014 10:48 PM