The C1InputMask is an input web control that allows users to type text-based input on the mask. This sample illustrates a simple default C1InputMask; other samples in this section illustrate how to use C1InputMask as a password field, a name field, and a drop-down list.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
<%@ Page Title="" Language="C#" MasterPageFile="~/Wijmo.master" AutoEventWireup="true" Inherits="C1InputMask_Overview" Codebehind="Overview.aspx.cs" %> <%@ Register Assembly="C1.Web.Wijmo.Controls.3" Namespace="C1.Web.Wijmo.Controls.C1Input" TagPrefix="wijmo" %> <asp:Content ID="Content1" ContentPlaceHolderID="Head" Runat="Server"> </asp:Content> <asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server"> <h2>Phone Number</h2> <wijmo:C1InputMask ID="C1InputMask1" runat="server" Mask="(999) 000-0000" HidePromptOnLeave="true"> </wijmo:C1InputMask> </asp:Content> <asp:Content ID="Content3" ContentPlaceHolderID="Description" Runat="Server"> <p> The <strong>C1InputMask </strong>is an input web control that allows users to type text-based input on the mask. This sample illustrates a simple default<strong> C1InputMask</strong>; other samples in this section illustrate how to use <strong>C1InputMask </strong> as a password field, a name field, and a drop-down list. </p> </asp:Content> <asp:Content ID="Content4" ContentPlaceHolderID="ControlOptions" Runat="Server"> </asp:Content>
1 2 3 4 5 6 7 8 9 10 11 12 13 14
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; public partial class C1InputMask_Overview : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { } }