maskededitextender

MaskedEditExtender number only, remove trailing zeros?

爷,独闯天下 提交于 2019-12-25 03:19:28
问题 I have the following ASP.NET code - <asp:TextBox ID="TextBox1" runat="server" Width="75" /> <ajax:MaskedEditExtender runat="server" TargetControlID="TextBox1" Mask="999999999" MaskType="Number" PromptCharacter=" " /> When I type in "1" and tab out, it displays "100000000". How do I get it to display only "1"? And how do I tweak it so the user can enter any valid positive integers without an upper limit? Thank you. 回答1: Duh! I need to use the FilteredTextBoxExtender instead of

Using a CalendarExtender with a MaskedEditExtender

不问归期 提交于 2019-12-23 02:21:19
问题 I'm trying to have a textbox function exactly like the third textbox down on this page: http://www.asp.net/AJAX/AjaxControlToolkit/Samples/MaskedEdit/MaskedEdit.aspx. I'm trying to use a CalendarExtender control with a MaskedEditExtender, because I don't want the user to be able to enter anything except a valid date into the box. On my maskededitextender I have a mask of "99/99/9999" but it seems to only work when the date is actually 8 digits (e.g. 12/12/2000) and not when the date is 7 or 6

Databinding int32 to MaskedEditExtender enabled TextBox

风格不统一 提交于 2019-12-08 03:36:20
问题 I have a master/detail scheme for editing an asp:GridView using an asp:DetailsView. One of my fields is for a phone number of type int64 (always 10 digits). I would like this field to always be displayed as (###)###-#### . My issue is the first digit in the phone number is always truncated for my edit item field which I used a MaskedEditExtender to achieve the formatting. Here is my EditItemTemplate for the details view: <cc1:MaskedEditExtender TargetControlID="edtPROJ_Leader_Phone" Mask="

Databinding int32 to MaskedEditExtender enabled TextBox

让人想犯罪 __ 提交于 2019-12-07 23:32:29
I have a master/detail scheme for editing an asp:GridView using an asp:DetailsView. One of my fields is for a phone number of type int64 (always 10 digits). I would like this field to always be displayed as (###)###-#### . My issue is the first digit in the phone number is always truncated for my edit item field which I used a MaskedEditExtender to achieve the formatting. Here is my EditItemTemplate for the details view: <cc1:MaskedEditExtender TargetControlID="edtPROJ_Leader_Phone" Mask="(999)999-9999" runat="server" ClearMaskOnLostFocus="false" ClipboardEnabled="true" MaskType="Number" />

AjaxControlToolkit MaskedEditExtender - custom mask appearance

对着背影说爱祢 提交于 2019-12-07 09:58:34
问题 I'm using a MaskedEditExtender to show users what format they should use to enter a date into a textbox. How do I change the mask to be dd/MM/yyyy instead of __/__/____ ? 回答1: I looked over the source code for the MaskedEditExtender, and it doesn't look it it supports what you want out of the box. You can replace the '_' with some other character with the PromptCharacter property, but to do what you want, you'd need to edit MaskedEditBehavior.js in the control's source code. Search for

AjaxControlToolkit MaskedEditExtender - custom mask appearance

烈酒焚心 提交于 2019-12-05 13:42:46
I'm using a MaskedEditExtender to show users what format they should use to enter a date into a textbox. How do I change the mask to be dd/MM/yyyy instead of __/__/____ ? I looked over the source code for the MaskedEditExtender, and it doesn't look it it supports what you want out of the box. You can replace the '_' with some other character with the PromptCharacter property, but to do what you want, you'd need to edit MaskedEditBehavior.js in the control's source code. Search for _PromptChar to find the relevant sections. For a quick workaround, you could create an image of "dd mm yy" and use