Recaptcha being triggered from masterpage control

Posted by superexsl on Stack Overflow See other posts from Stack Overflow or by superexsl
Published on 2010-05-17T23:13:49Z Indexed on 2010/05/17 23:21 UTC
Read the original article Hit count: 328

Hey, I have a master page which contains a Login control so that the user can login/logout from any page. However, a couple of content pages require a Recaptcha control. This causes problems because when I try and log in on a page that has the Recaptcha control, the system expects me to enter the words. I'm aware of the lack of validation groups in the Recaptcha control, and the fact that you can't have multiple forms on an ASP.NET page. Is there a way to work around this? A 'hacky' way I can think of, is in the "Login" event, check the page for a Recaptcha control. If one exists, then disable it, otherwise continue. However, that just seems quite inefficient especially when there are quite a few pages and most won't have a Recaptcha control.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about recaptcha