More in this section
Forums / Developing with Sitefinity / Spam Protector - CAPTCHA - Integrating with

Spam Protector - CAPTCHA - Integrating with

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
2 posts, 0 answered
  1. Russell
    Russell avatar
    25 posts
    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!
  2. Radoslav Georgiev
    Radoslav Georgiev avatar
    3370 posts
    01 Feb 2016
    28 Feb 2011
    Link to this post
    Hi Brad,

    Thank you for using our services.

    Your custom control does not need a form tag. Since the control is added to a page which already contains a runat server form you do not need to add an additional one.

    Best wishes,
    Radoslav Georgiev
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
2 posts, 0 answered