MaskedEditExtender works fine when user enters a value then exits the textbox.
However, I have a situation where a textbox is filled by code:
PhoneTextbox.Text = "6105551234" (value found in database, but is user editable)
When the textbox is displayed it is blank! Am I missing something?
Here is the Textbox definition:
<asp:TextBox ID="PhoneTextBox" runat="server" MaxLength="10" Columns="13" Visible="False"> </asp:TextBox>
<cc1:MaskedEditExtender ID="PhoneMaskedEdit" runat="server" Enabled="True" Mask="(999) 999-9999"
MaskType="Number" TargetControlID="PhoneTextBox" CultureAMPMPlaceholder=""
CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder=""
CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder=""
ClearTextOnInvalid="false" >
Please help.
Thank you.
Comments: Hi! We have checked MaskedEditExtender with the scenario you provided one more time, and it seems that all works just fine. TextBox is filled with the text you set in the code behind and the mask is shown. Would you please clarify what problem you faced using AJAX Control Toolkit 15.1.4? Best regards, Fadil
However, I have a situation where a textbox is filled by code:
PhoneTextbox.Text = "6105551234" (value found in database, but is user editable)
When the textbox is displayed it is blank! Am I missing something?
Here is the Textbox definition:
<asp:TextBox ID="PhoneTextBox" runat="server" MaxLength="10" Columns="13" Visible="False"> </asp:TextBox>
<cc1:MaskedEditExtender ID="PhoneMaskedEdit" runat="server" Enabled="True" Mask="(999) 999-9999"
MaskType="Number" TargetControlID="PhoneTextBox" CultureAMPMPlaceholder=""
CultureCurrencySymbolPlaceholder="" CultureDateFormat="" CultureDatePlaceholder=""
CultureDecimalPlaceholder="" CultureThousandsPlaceholder="" CultureTimePlaceholder=""
ClearTextOnInvalid="false" >
Please help.
Thank you.
Comments: Hi! We have checked MaskedEditExtender with the scenario you provided one more time, and it seems that all works just fine. TextBox is filled with the text you set in the code behind and the mask is shown. Would you please clarify what problem you faced using AJAX Control Toolkit 15.1.4? Best regards, Fadil