Captcha HtmlHelper Overview

The Telerik UI Captcha for ASP.NET MVC is a security measure that prevents automated spam from performing tasks such as form submissions in your ASP.NET MVC application. The widget generates distorted images of letters and numbers that are easily decipherable to humans, but not to automated programs (spam bots).

Telerik UI for ASP.NET MVC Ninja image

The Captcha is part of Telerik UI for ASP.NET MVC, a professional grade UI library with 110+ components for building modern and feature-rich applications. To try it out sign up for a free 30-day trial.

Basic Configuration

The following example demonstrates the basic configuration of the Captcha HtmlHelper. For the full server-side implementation, consider the Validation article.

        .Handler(handler => handler.Action("Reset", "Captcha")) // endpoint to return the CAPTCHA 
        .AudioHandlerFunction("audioHandler") // handler to fetch audio representation of the CAPTCHA (if needed)
        .ValidationHandler(handler => handler.Action("Validate", "Captcha")) // enpoint to validate the CAPTCHA
        function audioHandler(args) {
            args.success("@Url.Action("Audio")?captchaId=" +; 

Functionality and Features


For a complete example on the Captcha's events, refer to the demo on using the events of the Captcha.

Referencing Existing Instances

To reference an existing Captcha instance, use the configuration option. Once a reference is established, use the Captcha client-side API to control its behavior.

    // Place the following after your Telerik UI Captcha for ASP.NET MVC declaration.
        $(document).ready(function() {
            // The Name() of the Captcha is used to get its client-side instance.
            var captcha = $("#Captcha").data("kendoCaptcha");

See Also

In this article
Not finding the help you need? Improve this article