开发者

Masked Edit Extender Format Issue

开发者 https://www.devze.com 2022-12-26 14:10 出处:网络
I am using an ASP.NET AJAX Masked Edit Extender to开发者_高级运维 format phone numbers <asp:TextBox ID=\"tbPhoneNumber\" runat=\"server\" />

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

精彩评论

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