This is a migrated thread and some comments may be shown as answers.

Captcha not showing radtooltip

3 Answers 105 Views
Captcha
This is a migrated thread and some comments may be shown as answers.
Fahim
Top achievements
Rank 1
Fahim asked on 22 Jun 2011, 01:32 PM
hi
captcha control is not showing radtooltip and also focus does not goes the capctha textbox but to the chage image link?

3 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 22 Jun 2011, 02:18 PM
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.
0
Fahim
Top achievements
Rank 1
answered on 22 Jun 2011, 03:56 PM

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>

0
Accepted
Slav
Telerik team
answered on 22 Jun 2011, 04:17 PM
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.

Tags
Captcha
Asked by
Fahim
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Fahim
Top achievements
Rank 1
Slav
Telerik team
Share this question
or