Captcha Controls Not Working When First Placed in a Hidden Panel

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
12/21/2009 9:58:48 PM
Gravatar
Total Posts 131

Captcha Controls Not Working When First Placed in a Hidden Panel

I'm having an issue where I'm using the mp:CaptchaControl in a custom module. The mp control resides in a custom user control. This control works fine when used within a page that shows it initially. However, when I use it within another page that has a contact panel that I hide and show as necessary, the reCaptcha Control fails with an ArgumentNull Exception and the Subkismet control does not show the control. My guess is that I'm showing the control on postback and the mp control hides the captcha thinking it was just used to submit, but that's a guess because I don't see anywhere.

Thinking about abandoning the mp control and just integrating it outside of MP, but I like to use the controls whenever possible.

I did find code on the web around the blog section that shows recaptcha having throwing an argumentNullException, but in my page, the exception is being thrown on a page outside of my custom code, so I don't want to put the exception handling in that mojo code.

Any thoughts?

 

12/22/2009 6:55:31 AM
Gravatar
Total Posts 18439

Re: Captcha Controls Not Working When First Placed in a Hidden Panel

Dealing with those captcha controls is tricky business. I would avoid having a hidden one if possible, maybe try adding one dynamcially when you need it instead. You may have better luck not using the mp:CapthcaControl which is a provider model wrapping the different captchas and instead use a specific captcha control like SubkismetCapthca instead. I have fought many battles with the captchas in features where they are used.

Hope it helps,

Joe

You must sign in to post in the forums. This thread is closed to new posts.