开发者

Masked Edit Extender Format Issue

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?


Take a look at the following Question:

Databinding int32 to MaskedEditExtender enabled TextBox

This seems to be a common issue.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜