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
Hello JimsTech03,
Thanks for your post. The described issue sounds strange to me. Could you provide more information about your environment. So first of all I would suggest reset your toolbox and run once again the Toolbox utility. I have created a small sample for your reference to test it in your end. After you check my sample if you still have issues could you attach your sample here and I will investigate it further.
About the documentation how to use the control you may check this link :
http://help.infragistics.com/NetAdvantage/ASPNET/2010.3?page=Web_WebCaptcha.html
I started over creating an new test page. I dropped the WebCaptcha onto the page and got the following error in the4 design view.
Error Creating Control - WebCaptcha1
Value does not fall within expected range.
I am using Visual Studio 2010 with the latest NetAdvantage controls. I often get this type of error when dropping an Infragistics control onto a page but then they often still work. For example, when I view in browser it displays ok and I can enter the values. It responces correctly if I enter the correct values and gives me an error if I enter the wrong values.
I tried to send a screen print but it is too big and it is not accepted.
Are there any samples of how to capture the event (like on click) like you do with button so I can do something.
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
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?
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
Hi Hristo,
I'm back from vacation.
I believe I have it working although there are a few minor issues.
For some strange reason the text on the Submit button is not there so I had to add Text="Submit" to <SubmitButton. When I delete it and add it again same thing happens. It most be something on my web page that I did but I don't know what. Also the SubmitButton displays to the right, centered in the control and not under the box to enter the text as in the sample.
Also, when I open the Smart Tag I only see Show Audio, Show Refresh, Show Submit, About and Add Extender. I don't get the option to use the presets that you get with other Infragistics controls althought I know there are 14 presets.
I have not deployed it yet to GoDaddy but I belive it will work ok since it works in test.
Do you have any thoughts why I'm having these issues. I'm not having them in the test application.
I just deployed the WebCaptcha. It works fine on my local system but the image doesn't display on the server. I'm browsing the web to try to find a solution but have not found one yet. I saw some reference to copying the captcha.dll onto the server but so far I have not even found the captcha.dll.
I assume there is some easy solution if you know what it is. can you help?
I'm back at it trying again. And I still have the same problem. It won't display on the server.
I'm not sure how to configure the Application Pool. Do I need to do this even though I can find all the other Ifragistics dll's in'
C:\Program Files\Infragistics\NetAdvantage 2010.3\ASP.NET\ASP.NET\bin
Hi Jim,
probably this is because of the "Application pool" configuration in IIS. You will have to set it to: "Classic.NET AppPool" for CLR2 and 3.5 and "ASP.NET v4.0 Classic" for CLR4. Please try this and tell us what is the result.