3 Answers, 1 is accepted
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.
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>
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.