08 Apr 2009
22 Feb 2011
Link to this post
I am attempting to use the built in CAPTCHA control and have used the following page as a guide:
I follow the instructions but run into an error screen which reads "A page can have only one server-side Form tag."
I am dragging both the SpamProtector control and my custom control (which contains the submission / data processing "Page.IsValid" logic) onto the page. My custom control is wrapped in a "<form runat="server"> tag as I believe it needs this to run correctly.
I was curious if anyone could share a better way of implementing a CAPTCHA, or a way to get around the "only one server-side Form" issue. Included below is the bit of text from the guide that I assumed meant to drop in a second, custom control.
"In the user control which processes the submission data, check whether the page is valid or not (using the
Page.IsValid or ValidationGroup properties) before processing the submitted data."
Any tips are greatly appreciated!