Skip to main content
Tab

ASPxCaptcha.RefreshButton Property

Accesses the settings of the CAPTCHA editor’s refresh button.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

public RefreshButtonProperties RefreshButton { get; }

Property Value

Type Description
RefreshButtonProperties

A RefreshButtonProperties object that contains settings specific to an editor’s refresh button.

Remarks

The RefreshButton property allows you to access and customize the settings of the ASPxCaptcha‘s refresh button.

Example

The following part of the ASPxCaptcha - Custom Appearance online demo illustrates how to implement a captcha control with a custom appearance.

In this example, the control’s Refresh Button.ASPxCaptcha and Text Box.ASPxCaptcha are hidden, and their functionaliry is implemented in a custom manner using separate controls (the IMG element, ASPxLabel, ASPxTextBox).

function GetRefreshButton() {
    return document.getElementById("refreshButton");
}        

function OnCaptchaBeginCallback(s, e) {
    var refreshButton = GetRefreshButton();
    refreshButton.src = "Images/refreshButtonAnimated.gif";
}

function OnCaptchaEndCallback(s, e) {
    var refreshButton = GetRefreshButton();
    refreshButton.src = "Images/refreshButton.gif"; 
    tbCode.SetValue("");
...   
}
See Also