Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Closed Unassigned: Incorrect Validation Message in Callout Extender [27922]

$
0
0
All of the callouts on my page just display the message "Control is not valid." I am not doing anything out of the ordinary, and here is a sample of how they are set up (Note that they are in a Modal popup):

```
<asp:TextBox ID="retrieveEmailFirstNameTextBox" runat="server" MaxLength="50" />
<asp:RequiredFieldValidator runat="server" ID="retrieveEmailFirstNameTextBoxRequiredFieldValidator" Text="Please enter your first name to proceed." ControlToValidate="retrieveEmailFirstNameTextBox" />
<asp:ValidatorCalloutExtender ID="retrieveEmailFirstNameTextBoxRequiredFieldValidatorCalloutExtender" TargetControlID="retrieveEmailFirstNameTextBoxRequiredFieldValidator" runat="server"></asp:ValidatorCalloutExtender>

```
Image showing behavior is attached.

I am using the latest version of the toolkit.
Comments: ValidatorCalloutExtender uses ErrorMessage of the target validator. If this property is not set, the extender will use the default popup "This control is invalid" message. To fix your error, rename the Text property to ErrorMessage in the layout or add the ErrorMessage property with the text matching the Text property.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>