I am using RadCaptcha in a user control in an application form. It contains many asp.net controls (ie textboxes, dropdownlists, and etc) that expanded the form from top to bottom result in a vertical scroll bar. The RadCaptcha is placed at the bottom before the submit button.
Functionality wise, the RadCaptcha is working as expect but everytime I click the link to play the audio, the form would automatically scrolls to the top instead of staying at the bottom. In contract, the Generate New Image would stay where it is after a new image is generated. Is this the normal behavor of the control? How do I prevent it from focus to the top of the form when playing the audio?
Regards,
Donny
===
This is how I added the RadCaptcha to the usercontrol:
Functionality wise, the RadCaptcha is working as expect but everytime I click the link to play the audio, the form would automatically scrolls to the top instead of staying at the bottom. In contract, the Generate New Image would stay where it is after a new image is generated. Is this the normal behavor of the control? How do I prevent it from focus to the top of the form when playing the audio?
Regards,
Donny
===
This is how I added the RadCaptcha to the usercontrol:
protected
void
Page_Init(
object
sender, System.EventArgs e)
{
captcha =
new
Telerik.Web.UI.RadCaptcha();
captcha.ID =
"captcha"
;
captcha.ErrorMessage =
"The security code you entered did not match. Please try again."
;
captcha.EnableRefreshImage =
true
;
captcha.CaptchaAudioLinkButtonText =
"Play Audio Code"
;
captcha.CaptchaImage.EnableCaptchaAudio =
true
;
captcha.CaptchaImage.AudioFilesPath = Server.MapPath(
"/forms/RadCaptcha"
);
captcha.CaptchaImage.UseAudioFiles =
true
;
captcha.CaptchaTextBoxLabel = String.Empty;
captcha.Visible =
true
;
divCaptcha.Controls.Add(captcha);
}