At run time, the C1MaskedInput control displays the mask as a series of prompt characters (for example, # or _). The prompt characters represent each editable mask position. To change the prompt character, use the PromptChar property. This example uses the C1MaskedInput control with the Phone number mask: (999) 000-0000.
To change the prompt character using the Tasks menu:
To change the phone number PromptChar property, open the C1MaskedInput Tasks menu and enter the number sign (#) in the PromptChar text box.
To change the prompt character using .html markup:
To change the prompt character to the number sign (#) for the C1MaskedInput control, use the following markup in the .aspx page:
<cc1:C1MaskedInput ID="C1MaskedInput1" runat="server"
This topic illustrates the following:
Run the project and notice that the number sign (#) is displayed as the prompt character in the Web browser, as shown here:
Note that the 412 area code appears instead of the number signs since the Text property was specified for the control.
For details on hiding the prompt characters when the input box loses focus, see the Hiding the Prompt Character on Leave topic.