Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ValidatorCalloutExtender

Status
Not open for further replies.

shams123

Programmer
Jan 27, 2006
81
MY
Hi guys,

I am trying to use the ValidatorCalloutExtender control in my asp.net page. Apparently, it works fine, however during validation I can also see the requiredfield validator message coming up. This in essence is showing the extender message (as needed) and the requiredfield validator message (not needed). I am using the following code.

<tr>

<td align=left>Username: </td>

<td align=left>

<asp:TextBox runat=server ID="txtUserName"></asp:TextBox>

<asp:RequiredFieldValidator runat=server ID="Req1" ControlToValidate="txtUserName" ErrorMessage="Username required."></asp:RequiredFieldValidator>
</td>

</tr>

<cc2:ValidatorCalloutExtender ID="ValidatorCalloutExtender1" runat="server" TargetControlID="Req1" >

</cc2:ValidatorCalloutExtender>

Please let me know if I am missing out anything.

Thanks!
 
Is this, ValidatorCalloutExtender1, a custom control you have? If so, you will have to look at the code for that control.
 
Hi, just to let you know, I have found the solution. I have to set the requiredfield validator's property "display" to "none". This works like a charm!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top