New to Telerik UI for ASP.NET MVC? Start a free 30-day trial

Defines the fluent API for configuring the CaptchaMessagesSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class CaptchaMessagesSettingsBuilder

Inheritance: objectCaptchaMessagesSettingsBuilder

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

C#
public CaptchaMessagesSettingsBuilder(CaptchaMessagesSettings settings)
Parameters:settingsCaptchaMessagesSettings

The CaptchaMessagesSettings

Methods

Defines the "title" message of the audio button. The default message is "Speak captcha".

C#
public CaptchaMessagesSettingsBuilder Audio(string value)
Parameters:valuestring

The value that configures the "title" of the audio button.

Returns:

CaptchaMessagesSettingsBuilder

Example:
C#
@( Html.Kendo().Captcha()
.Name("captcha")
.Messages(msg => msg.Audio("Play captcha"))
)

Defines the "alt" attribute of the captcha's image tag. The default message is "Type the Captcha code from the image".

C#
public CaptchaMessagesSettingsBuilder ImageAlt(string value)
Parameters:valuestring

The value that configures the "alt" value of the image tag.

Returns:

CaptchaMessagesSettingsBuilder

Example:
C#
@( Html.Kendo().Captcha()
.Name("captcha")
.Messages(msg => msg.ImageAlt("Enter the text from the image."))
)

Defines the "title" message of the reset button. The default message is "Reset captcha".

C#
public CaptchaMessagesSettingsBuilder Reset(string value)
Parameters:valuestring

The value that configures the "title" of the reset button.

Returns:

CaptchaMessagesSettingsBuilder

Example:
C#
@( Html.Kendo().Captcha()
.Name("captcha")
.Messages(msg => msg.Reset("Reset"))
)

Defines message that is displayed when the validation is successful. The default message is "Verification successful".

C#
public CaptchaMessagesSettingsBuilder Success(string value)
Parameters:valuestring

The value that configures the validation success message.

Returns:

CaptchaMessagesSettingsBuilder

Example:
C#
@( Html.Kendo().Captcha()
.Name("captcha")
.Messages(msg => msg.Success("Successful Verification"))
)