Genpact Cora Knowledge Center

Support

Masked Textbox Control Code Examples

Masked Textbox Code Example

<sq:MaskedTextBox ID="MaskedTextBox1" runat="server" SelectionOnFocus="SelectAll"

        Label="IP address: " PromptChar="_" Width="300px" Mask="<0..255>.<0..255>.<0..255>.<0..255>">

    </sq:MaskedTextBox><br /> 

    Multiline Input:&nbsp;<sq:MaskedTextBox Width="210px" Height="80px" ID="MaskedTextBox2"

        runat="server" Mask="Te\lephone: (###) ###-####-####\r\nF\ax: (###) ###-####-####\r\nZip code: #####-####"

        TextMode="MultiLine" Rows="5" Columns="50">

    </sq:MaskedTextBox>