Hi I dropped the WebCaptcha onto a page but cannot get it to respond or do anything in the Design view. I get "value does not fall within expected range" and it does not respond to make modifications. Sometimes it says it has a duplicate ID but I don't have a duplicate ID (I did a search to be sure).
It does work when I view in browser but I cannot find any documentation or samples how to code the Submit event so I can do something when they enter correct values.
Thanks, Jim
Thanks Hristo,
Your sample code is really helpful. I see that maybe I should have been able to figure out how to code the OnClick.
I'm leaving for a 2 week trip Wednesday and will ahve to wait until I get back to try deploying again to get the error. Will try again and let you know.
I'm almost there so thanks for all your patience.
Jim
You don't have to check IsValid in PageLoad, you can subscribe for Submit button OnClick event:
<ig:WebCaptcha ID="WebCaptcha1" runat="server" Width="250px"> <SubmitButton ID="btnSubmit" runat="server" OnClick="btnSubmit_Click" /> </ig:WebCaptcha>... protected void btnSubmit_Click(object sender, EventArgs e) { if (this.WebCaptcha1.IsValid) { //Add your code } }
Can you tell us what's wrong when you deploy it?
I finally got it working in test. I didn't understand why I had to check IsValid in the OnLoad event but it works.
But when I deployed it to GoDaddy it doesn't work. I'll try again using your prior advice.
Also, whe I use the smart tag there is no option to select a preset like you normally get but the default is ok.
JIm
I have searched for hours and cannot find a sample or text that will tell me how to check the IsValid event. Does anyone have a sample or can anyone tell me how this works?
Thanks
Hi Hristo,
Thankk you for the reply. I have reviewed all the links you included previously. I'm still trying to get it working locally so I have not deployed it yet.
My question is still the same. I do not know how to respond to the click event after the value is successfully entered. I need to be able to do something, like send my email, after they successfully enter the correct values. I cannot find anywhere in the documentation how to respond to the click event.
Maybe I don't understand something but when I do a test and enter the correct values it just comes back with different text to enter. I don't want it to do that. I would like to send my email after correctly entering the proper values, not just getting another set of values to enter.
Thanks,