Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > Captcha > Captcha not showing radtooltip

Answered Captcha not showing radtooltip

Feed from this thread
  • Fahim avatar

    Posted on Jun 22, 2011 (permalink)

    hi
    captcha control is not showing radtooltip and also focus does not goes the capctha textbox but to the chage image link?

    Reply

  • Posted on Jun 22, 2011 (permalink)

    Hello,

    I have tried to reproduce the issue locally but no avail. Here is the code which I tried which worked as expected.

     aspx:
    <telerik:RadToolTip ID="Tooltip1" runat="server" TargetControlID="RadCaptcha1"  >ToolTip For Captcha</telerik:RadToolTip>
    <telerik:RadCaptcha  ID="RadCaptcha1" runat="server" ForeColor="Red" ErrorMessage="Enter Correct Data"
     Display="Dynamic">
    </telerik:RadCaptcha>

    Thanks,
    Shinu.

    Reply

  • Fahim avatar

    Posted on Jun 22, 2011 (permalink)

    thankyou for your reply

    I copied your code it worked but when I put the showevent property it stopped showing can we set it to show when the text box of captcha is focused and

    how can focus directly go to the text box of captcha instead of change image.

    <

    telerik:RadToolTip ID="Tooltip1" runat="server" Width="150px" Height="70px" ShowEvent="OnFocus" Position="MiddleRight" TargetControlID="RadCaptcha" >Enter the image text into the textbox.</telerik:RadToolTip>

    <telerik:RadCaptcha ID="RadCaptcha" ForeColor="Red" CaptchaImage-EnableCaptchaAudio="true" EnableRefreshImage="true" CaptchaTextBoxLabelCssClass="forget-validator" CaptchaImage-ImageCssClass="forget-validator text-center" CaptchaTextBoxCssClass="forget-validator" runat="server" CaptchaTextBoxLabel="" ErrorMessage="The code you entered is not valid." >

    </telerik:RadCaptcha>

     

     

     

     

     

     

    </div>

    Reply

  • Answer Slav Slav admin's avatar

    Posted on Jun 22, 2011 (permalink)

    Hello Fahim,

    RadCaptcha has property ToolTip, which must be set with the text you want to display when your mouse is over the control. Usually, when Refresh Captcha Image Functionality is enabled(EnableRefreshImage property is set to true), the link for generating new code takes focus first. To avoid this you can set a custom field for Captcha code input, using TextBox control.

    The example below shows how to configure RadCaptcha with tooltip and custom input field:
    <asp:TextBox ID="txtRadCaptcha" runat="server" MaxLength="5"></asp:TextBox>
    <telerik:RadCaptcha ID="RadCaptcha1" runat="server" EnableRefreshImage="True" ToolTip="Enter the code!" ErrorMessage="Wrong code!" ValidationGroup="Captcha" ValidatedTextBoxID="txtRadCaptcha">
          <CaptchaImage RenderImageOnly="true" />
    </telerik:RadCaptcha>
    <asp:Button ID="Button1" runat="server" Text="Button" ValidationGroup="Captcha" />

    If this information doesn't help you find a solution, please send simple, runnable project that
    clearly shows the problem so that we can easily isolate what is causing it.

    Regards,
    Slav
    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 > Captcha not showing radtooltip