New to Telerik UI for ASP.NET AJAX? Download free 30-day trial

WebForms OTPInput Overview

About Telerik WebForms OTPInput for ASP.NET AJAX

The OTPInput groups a series of inputs together on a single line. The component allows you to enable and add input groups, as well as adding separator to its items. In this demo, you can see the OTPInput within a Profile Authentication from.

Telerik WebForms OTPInput is part of Telerik UI for ASP.NET AJAX, which is a comprehensive toolset containing over 120 controls and taking care of the common functionalities, allowing you more time to focus mainly on the business-specific logic of your application.

For more information about the Telerik WebForms OTPInput Control, please refer to the documentation.

  • DefaultCS.aspx
  • DefaultCS.aspx.cs
  • script.js
  • style.css
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DefaultCS.aspx.cs"  Inherits="OTPInput_Overview_DefaultCS" %>

<!DOCTYPE html>
<html xmlns='http://www.w3.org/1999/xhtml'>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link href="style.css" rel="Stylesheet" type="text/css" />
    <script src="script.js"></script>
</head>

<body>
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <div class="demo-container no-bg flex-center" runat="server">
        <div class="email-wrapper">
            <div class="sidebar"></div>
            <div class="email-container">
                <div class="email-header">
                    <div class="avatar"></div>
                    <span class="title">Profile Authentication</span>
                </div>
                <div class="rect-field-sm"></div>
                <div class="rect-field"></div>
                <label class="message-label">Enter the code sent to your phone</label>
                <div>
                    <telerik:RadOTPInput ID="OTPInput1" runat="server" Placeholder="0-9" FillMode="Outline" Value="123456" Space="true" Type="Number">
                        <Items>
                            <telerik:OTPInputItem GroupLength="3" />
                            <telerik:OTPInputItem GroupLength="3" />
                        </Items>
                        <ClientEvents OnLoad="onLoad" />
                    </telerik:RadOTPInput>
                </div>
                <br />
                <div class="rect-field-sm"></div>
                <div class="rect-field"></div>
            </div>
        </div>
    </div>
    </form>
</body>
</html>

Support & Learning Resources

Find Assistance