Vista skin

MaskedTextBox - Server-side Events

Event log

Isolate this demo as a stand-alone application
  • About this demo
  • C#
  • VB

This example shows how to get and set the value of RadMaskedTextBox control server-side. You can wire the OnTextChanged server-side event which will be raised when the AutoPostBack property of the corresponding RadInput control is set to true, the user types valid entry and the input loses focus.

Change the data in any of the input controls and loose its focus - its TextChanged event will fire and returns the control value.

Related Resources

  • DefaultVB.aspx
  • DefaultVB.aspx.vb
  • styles.css
<%@ Page Language="vb" CodeFile="DefaultVB.aspx.vb" AutoEventWireup="false" Inherits="Telerik.NumericTextBox.ServerSide.DefaultVB" %>

<%@ Register TagPrefix="telerik" Namespace="Telerik.Web.UI" Assembly="Telerik.Web.UI" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "">
<html xmlns=''>
<head runat="server">
    <title>Telerik ASP.NET Example</title>
    <link rel="stylesheet" type="text/css" href="styles.css" />
    <form id="form1" runat="server">
    <telerik:RadScriptManager runat="server" ID="RadScriptManager1" />
    <telerik:RadSkinManager ID="RadSkinManager1" runat="server" ShowChooser="true" />
    <telerik:RadFormDecorator RenderMode="Lightweight" ID="RadFormDecorator1" runat="server" DecorationZoneID="demo-containers" />
    <telerik:RadAjaxManager runat="server" ID="RadAjaxManager1">
            <telerik:AjaxSetting AjaxControlID="RadMaskedTextBox1">
                    <telerik:AjaxUpdatedControl ControlID="EventLogConsole1" />

    <div class="demo-containers">
        <div class="demo-container">
            <div class="contentContainer">
                <telerik:RadMaskedTextBox RenderMode="Lightweight" OnTextChanged="RadMaskedTextBox1_TextChanged" ID="RadMaskedTextBox1" LabelWidth="120px"
                    Label="MaskedTextBox" runat="server" AutoPostBack="True" InvalidStyleDuration="100" Width="100%" Mask="###-###">

    <qsf:EventLogConsole runat="server" ID="EventLogConsole1" AllowClear="true"></qsf:EventLogConsole>

Support & Learning Resources

Find Assistance

Help Us Improve

Was this example helpful?