Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
65
ValidatorCalloutExtender + CustomValidator + WebCombo
posted

Hello everyone,

I would like to know if it's possible to add a CustomValidator with a ValidatorCalloutExtender  into a WebCombo

I have a property in my CustomValidator called : ControlToValidate

When I write the ID of a asp.net control like a TextBox everything is OK.

But when I write the ID of my WebCombo, I got a  System.Web.HttpException

Here is the code :

 

 

 

 

 

 

 

 

 

 

 

 

 

 

<asp:CustomValidator

ID="CV"

 

 

runat="server"

 

 

ErrorMessage="Error"

 

 

ClientValidationFunction="cboLangueValidate"

 

 

ControlToValidate="cboLangue"

 

 

/>

 

 

<cc1:ValidatorCalloutExtender

 

 

ID="ValidatorCalloutExtender2"

 

 

runat="server"

 

 

Enabled="True"

 

 

TargetControlID="CV"

 

 

/>

Can anyone give me an advice.

Thanks in advance