Masked Edit Extender Format Issue
Posted
by Kumar
on Stack Overflow
See other posts from Stack Overflow
or by Kumar
Published on 2010-04-14T04:41:05Z
Indexed on
2010/04/14
4:43 UTC
Read the original article
Hit count: 428
asp.net-ajax
|maskededitextender
I am using an ASP.NET AJAX Masked Edit Extender to format phone numbers
<asp:TextBox ID="tbPhoneNumber" runat="server" />
<ajaxToolkit:MaskedEditExtender TargetControlID="tbPhoneNumber" Mask="(999)999-9999" MaskType="Number"
InputDirection="LeftToRight" ClearMaskOnLostFocus="false" ClearTextOnInvalid="false" runat="server" AutoComplete="false" />
On the page load event I am trying to populate the phone textbox as follows:
protected void Page_Load(object sender, EventArgs e)
{
tbPhoneNumber.Text = "(394)456-310";
}
So there is one number which is missing at the end to make it a valid phone number. When the page loads I expected the value in the textbox to be (394)456-310_ But it displays (_39)445-6310 Why is this happening?
© Stack Overflow or respective owner