Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Captcha > Displaying RadCaptcha error messages

Answered Displaying RadCaptcha error messages

Feed from this thread
  • Tim avatar

    Posted on Jun 14, 2011 (permalink)

    Hi,
    I am using a ValidationSummary to display the RadCaptcha error messages along with the other controls on my form.  But, when I set the ErrorMessage property of RadCaptcha, the error message also always displays right above the RadCaptcha control on the page.  Is there a way to turn that error message off so it only displays in the ValidationSummary at the top of my page and not right above the component itself?  I'd rather not show 2 identical error messages on the page in different places.

    Thanks,
    Tim

    Reply

  • Answer Pero Pero admin's avatar

    Posted on Jun 15, 2011 (permalink)

    Hello Tim,

    Use the RadCaptcha.Display property to control the display behavior of the error message. Setting it to None will always hide the error message.

    Regards,
    Pero
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

    Reply

  • Tim avatar

    Posted on Jun 15, 2011 (permalink)

    Thanks Pero, that's exactly what I needed.  Thanks for your help!

    Reply

  • Ross avatar

    Posted on Jun 15, 2011 (permalink)

    A bit of an extension to the first question, when I use Validators, I set the ErrorMessage to something pertinent, and the Text to "*" (asterisk). This way the ValidationSummary displays the message and a * is displayed next to the offending field. It would be nice if this was possible with the RadCaptcha. Perhapes the addition of ErrorText and ErrorTooltip properties to mimic the standard Validator properties?

    Regards

    ROSCO

    Reply

  • Tim avatar

    Posted on Jun 16, 2011 (permalink)

    I agree with the poster above.  I too like to put an asterisk beside the field and then display the error message in a ValidationSummary and found that RadCaptcha was unable to do that.  Additionally, I noticed that the textbox of RadCaptcha does not have a FocusedStyleProperty like the RadTextBox does.  I like to change the background color of a textbox when the focus is on it, but am not able to do that with the RadCaptcha textbox.  That might be a nice addition to have as well so that you don't have to use the ValidatedTextBoxID property and validate a separate RadTextBox instead of using the textbox built into RadCaptcha.

    Thanks,
    Tim

    Reply

  • Pero Pero admin's avatar

    Posted on Jun 20, 2011 (permalink)

    Hello Guys,

    Thank you for your suggestions!
    I logged them in our PITS where you can track their progress and have the chance to vote for their implementation. We will do our best to implement them for some of the next releases.

    1. ErrorText
    2. ErrorCssClass and FocusedCssClass

    Kind regards,
    Pero
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

    Reply

  • Ross avatar

    Posted on Jun 20, 2011 (permalink)

    Cool, thanks Pero.

    I had another thought about this - if I'm using ValidatedTextBoxID to validate using my own text box, it would be nice if the ErrorText was displayed next to the text box, as that is where the UI action happens. Would it be possible to have a CaptchaValidator control that has a ControlToValidate property that links to the RadCaptcha control? A lot more work for you guys, but it would make the validation totally configurable, which is a Good Thing.

    Or maybe it could be done with a CompareValidator?

    ROSCO

    Reply

  • Pero Pero admin's avatar

    Posted on Jun 24, 2011 (permalink)

    Hi ROSCO,

    Yes, the error text could also be displayed next to the ValidatedTextBoxID. I updated the PITS issue to include this feature also. The RadCaptcha can validate any  control that implements the ITextControl interface simply by setting the ValidatedTextBoxID, so implementing ControlToValidate would be a redundant functionality.

    Regards,
    Pero
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Captcha > Displaying RadCaptcha error messages