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

Limiting Allowable Values

RadTextBox can be used with RegularExpressionValidator to validate the input for a specific format.

The following example shows how to use this approach to use RadTextBox for entering Email addresses:

<telerik:RadTextBox RenderMode="Lightweight" ID="RadTextBox1" runat="server">
    ErrorMessage="Please, enter valid e-mail address."
<asp:Button ID="Button1" runat="server" OnClick="Button1_Click" Text="Submit" />

When the user clicks the Submit button, the text box is validated and the error message is displayed if the entered text does not match the email format.

See Also

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