AJAX :: MaskedEditExtender Looses Format When Not In Focus?

Sep 23, 2010

I have a tex box which I'm using to capture a bank sort code.

I want to use the AJAX MaskedEditExtender so the user only ever inputs the data in this format 12-34-56.

Here is my extender code:

[Code]....

This initially works fine, however when i remove the focus on this text box the input removes any hyphen and the texbox value is left like this 123456.

View 2 Replies


Similar Messages:

AJAX :: TextBox With MaskedEditExtender Looses Value After Postback?

Mar 19, 2010

I have a webform with two textboxes both with maskededitextender with date type, and a button.

When I press the button and the postback occurs the first textbox looses the value and shows the date mask.

What to do so this doesn't happen and the textbox doesn't loose the value.

View 3 Replies

AJAX :: MaskedEditExtender Gets Focus On Postback?

Sep 2, 2010

I'm having a really strange issue with the MaskedEditExtnder. I've attached some markup for one of the textboxes. I'm using a MaskedEditExtender and MaskedEditValidator along with a CalendarExtender so the user has the option to type the date or click on an image and pick the date.

So, if I enter/pick a date then select a control that forces a postback (usually a dropdownlist but not always) when the page is returned the focus goes back to the textbox I just entered the date in. So what about the MaskedEdit, MaskedEditValidator, CalendarExtender would cause the page to return focus to the control being extended? See markup below - am I missing something??

[Code]....

View 3 Replies

Data Controls :: Save (Insert) Data To Database When TextBox Looses Focus Using JQuery AJAX

May 7, 2015

I'm referring in this question [URL] ....

and now what I want is without using the submit button and save to database

View 1 Replies

AJAX :: MaskedEditExtender Date Format Incorrect?

Jun 2, 2010

I have a textbox for date input and I used a MaskedEditExtender to set the Mask="99/99/9999": here is the code:

<asp:TextBox runat="server" ID="tbDate" Width="80px" />
<ajax:MaskedEditExtender ID="MaskedEditExtender1" runat="server" TargetControlID="tbDate" Mask="99/99/9999" MaskType="Date" />

In my code when the page loads I need to set the tbDate to readonly, then when the user enters some other info on the page I will make tbDate editable (not readonly), I did all these using javascript by setting tbDate.readOnly = true/false. However, when
going from readonly to editable, when the tbDate field receives the focus, the mask __/__/____ appears, but when the user starts typing the first digit, it pushes the mask as if the mask was part of the value, so it becomes something like 12__/__/____ instead
of 12/__/____. If I commented out the code that makes the tbDate field readonly, then the mask works as expected.

View 2 Replies

AJAX :: Displaying Currency With MaskedEditExtender In Correct Format

Dec 1, 2010

I am using ASP.NET3.5. I have used MaskedEditExtender for currency purpose. when iam insering data into table it is accepting correct figures. while reading the same figures from database,I am displaying the figured in another textbox. (for second textbox i have used MaskedEditExtender) but it is displaying in that text box wrongly. suppose x=100 am reading this value from database and displaying x value in edit mode.but it is displaying 1.00. means it is taking last 2 digits as decimal points. how can I show in correct format?

View 5 Replies

AJAX :: Phone Number Mask Format With MaskedEditExtender

Feb 21, 2011

I want a TextBox with a mask like (xxx) xxx-xxxx using a MaskedEditExtender. I tried to set up the mask property to "(999) 999-9999" or "(999) 999-9999" but nothing works. It there a way I can have the mask I want?

View 2 Replies

Data Controls :: Show Alert Message When TextBox Inside GridView Looses Focus

May 7, 2015

function calc(row)
{
var grdID=document.getElementById('<%=grid1.ClientId%>');
var Rate;
var excise;
var Tax;

[Code] ....

I have a javascript for amout calculation and validation for grid controlsi have called this function on grid rowdataboundfor few gridtext controls i have set onblur event & for few i have onchnage event the problem is for few grid textbox where i have validated i get the mesaage even before the control get focusi want the alert message only when that particular control has lost focus not other wise.

View 1 Replies

AJAX :: Error "Invalid Home Number. Number Should Be In The Format: 555-123-4567" With MaskedEditExtender

Oct 28, 2010

My requirement is, I have one text box and that text box accepts US Format 10 digit phone number like 555-555-5555. I want when user enter 5555555555 it automatically convert this in 555-555-5555 and if he enter some wrong number then show him error and if dont want to enter any thing then there should not be any error.

<th style="width: 150px">Home Telephone </th>
<td>
<asp:TextBox ID="txtHome" runat="server" MaxLength="12" ValidationGroup="vUserDetailsB" Width="252px" CssClass="txtBox" TabIndex="19"></asp:TextBox>
<cc1:MaskedEditExtender ID="meeHome" runat="server" TargetControlID="txtHome"
AutoComplete="false" MaskType="None" Mask="999-999-9999" ClearMaskOnLostFocus="true" InputDirection="LeftToRight" />
<%-- <cc1:MaskedEditValidator ID="mevHome" runat="server" ControlToValidate="txtHome"
EmptyValueMessage="Telephone Number is required." ValidationGroup="vUserDetailsB"
ControlExtender="meeHome" InvalidValueMessage="Valid Telephone Number is required."
IsValidEmpty="false" ValidationExpression="^d{3}-d{3}-d{4}&#36;" Font-Size="8pt" />--%>
<asp:RegularExpressionValidator ID="revHome" runat="server" ControlToValidate="txtHome" Display="Dynamic" ErrorMessage="Invalid Home number. Number should be in the format: 555-123-4567" Font-Size="8pt" SetFocusOnError="True" ValidationExpression="d{3}-d{3}-d{4}"
ValidationGroup="vUserDetailsB" Width="100%" meta:resourcekey="txtHomeResource1"></asp:RegularExpressionValidator>
</td>

Whats happenening, If i entered any thing like 5555555555 and it is coverting to this 555-555-5555 format which is correct and then when i moved to another textbox it is throwing error "Invalid Home number. Number should be in the format: 555-123-4567" and this format changes to 5555555555 and its not going ahead.

View 3 Replies

AJAX :: FileUpload Looses File On PostBack

Nov 22, 2015

I have Created a Web page with master page. Page Contains two dropdown list i am using Update panel with trigger.

when I select image using fileupload after state and city changes then record submitted with Image but when i select the image after that i did some changes with state and city on that time fileupload lost its selected file or files .

View 1 Replies

AJAX :: Dynamic Added TextBox In TabContainer Looses Text Value?

Feb 8, 2010

I'm quite new to the hole AJAX world,so maybe the solution for my problem is not so tricky as i think.

I have a TabContainer where each Tab represents a language (German, English, French,...). I Add the Tabs at runtime like

[Code]...

After the postback I loose my tabs and of course its content.

[Code]...

View 1 Replies

AJAX :: Can Use A MaskedEditExtender With A Combo Box

Feb 23, 2011

I want masked ComboBox, so I use a MaskedEditExtenderwith a ComboBox. The two controls came from the ajax control toolkit. But I got an error: "Unable to cast object of type 'AjaxControlToolkit.ComboBox' to type 'System.Web.UI.WebControls.TextBox'". Is there a way a can use a MaskedEditExtender with a combo box?

View 4 Replies

AJAX :: MaskedEditExtender Multilanguage?

Sep 26, 2010

<cc1:MaskedEditValidator
ID="MaskedEditValidator5"
runat="server" [code]....

View 1 Replies

AJAX :: MaskedEditExtender Decimal Values?

May 10, 2010

I am using MaskedEditExtender on my textbox.Set the masktype to number.Now the user can enter decimals also at any place to my textbox.Is it possible for my MaskedEditExtender to still accept that or I have to use custom javascript/ regex for this.

View 5 Replies

AJAX :: MaskedEditExtender Not Functioning Properly

Jun 7, 2010

I'm having a issue with a MaskedEditExtender, I am using it for a datetime field with the sqltable field definition as smalldatetime, I have several error messages such as emptyvalue error message, minimium value error message along with a few others.

Everything works fine until i put a maximium value, on selecting either insert or edit it throws the error even if the date entered is between the minimium value and the maximium value and will not go away. As you are aware smalldatetime has a max value of 06/06/2079 which won't be a issue in my lifetime but for validation purposes I want to make sure the user doesn't accidentally enter a value larger than the max value thus causing an error on insert or edit.

View 6 Replies

AJAX :: How To Clear The Textbox Associated MaskedEditExtender

May 24, 2010

the code like below, how to clear tbxDate when input an invalid date use javascript

[Code]....

View 3 Replies

AJAX :: Strange Results With MaskedEditExtender?

Oct 12, 2010

I've inherited a web project from another company, and I'm having a weird issue with a phone number mask.

If the ClearMaskOnLostFocus is "true", I lose the mask in the edit field (this is a editing screen for an existing record). If set to false, the mask is present, but the leading digit is truncated, and will write back to the DB an incorrect number if submitted, with that leading "_".

True = 8885551212
False=(_88)-555-1212
The DB field a a varchar(20) -- don't ask me why.
<asp:MaskedEditExtender ID="MaskedEditExtender3" runat="server"
learMaskOnLostFocus="true" MaskType="Number"
Enabled="True" Mask="(999) 999-9999"
TargetControlID="Phone_Number">
</asp:MaskedEditExtender>

I'm recently back at work after a long layoff period, and my ASP is a little rusty.

View 1 Replies

AJAX :: Can't Add A MaskedEditExtender To A Template Field?

Nov 27, 2010

I've added a script manager control to an ASP.NET page. And I've also got a details view control on the page. I've converted a couple of the fields to template fields, because I want to add a MaskedEditExtender to the textboxes in the fields (one fieldis associated with a time field in the database, and the other field is associated with a datetime field in the database, so I want to put a MaskedEditExtender into the template field to associate with the textboxes there. However, no matter how many timesI try to copy the MaskedEditExtender into the template field, VS 2010 will not let me.

View 13 Replies

AJAX :: Configure MaskedEditExtender & MaskedEditValidator?

Oct 13, 2010

have a C#/ASP.NET web application that contains DetailsView controls that are used for CRUD operations through the EntityDataSource and Entity Framework. Unfortunately I'm not sure which forum would be best to post this under, since I am wondering whether either the MaskedEdit AJAX controls or Entity Data Model could be configured to allow for this.ProblemThe Entity Framework requires time fields to be of time(7) data type, which must be entered as 24-hour time, with seconds (e.g. '09:30:00'). However, I want the time entered in 12-hour time and without seconds (e.g. '9:30 AM'). Is there a way I can configure the MaskedEditExtender and/or MaskedEditValidator to allow for this. What I was thinking is possibly using the AutoComplete portion of this control to fill in the remaining portions (i.e. seconds) that the user does not enter, but which the EF requires. Either that or can the Entity Data Model or something else be configured to allow for this?Existing Code

<asp:TemplateField HeaderText="Start Time" SortExpression="StartTime">
<EditItemTemplate>
<asp:TextBox ID="txtStartTimeEdit" runat="server" Text='<%# Bind("StartTime") %

[code]...

View 3 Replies

AJAX :: Conflict Between AsyncfileUpload And MaskedEditExtender?

Jan 28, 2010

i have a page with both AsyncfileUpload and MaskedEditExtender.When I try to upload a pic through the asyncfileupload, I get a jscript error whilst debugging.The dynamic code is below, the error arises here: if (document.activeElement) .Anyone knows how to solve this??

[Code]....

View 2 Replies

AJAX :: Using Web User Control With MaskedEditExtender?

May 15, 2010

I am using Web User control with MaskEditExtender and MaskEditValidatore .

In asp.net page it works good but if I load it into Modal Popup (using LoadControl in webservice), I can see only the Textbox.

View 2 Replies

AJAX :: CalendarExtender Combined With MaskedEditExtender Not Working

Feb 16, 2010

I have a textbox with a calendar extender.

When a date on the calendar is clicked the textbox is filled with the date value in format: dd-mm-yyyy That works...but now I added a MaskedEditExtender on that same textbox field. Now when a date in the calendar extender is clicked the focus is set on the textbox field, the mask shows, but the values are not filled in!

I also checked this post:[URL]but that didn.

Here's my code

[code]....

View 8 Replies

AJAX :: MaskedEditExtender And CalendarExtender / Is Is Possible To Make It Insert 20 Instead Of 00

Nov 19, 2010

On the AjaxControlToolkit samplepage. The third control is a calendar, if you enter 10/10/10 and exit the textbox, the value is changed to 10/10/0010.

If the two first digits in the year if left out, is is possible to make it insert 20 instead of 00, to get 10/10/2010 ?

View 7 Replies

AJAX :: Postback Causes MaskedEditExtender To Clear Current Value?

Feb 26, 2010

For many of the Ajax ControlToolkit, a post back causes a lot of screw up with these controls. One example is the MaskedEditExtender. I have a webform that has various parts which depends on a RadioButtonList control option. Some part of webform maybe hidden or shown base on what option the user chose from the RadioButtonList control. The RadioButtonList control is set to autopostback. Let's say there is the txtDate textbox that regardless what option the user chose from the RadiobuttonList control, it will always shown on the webform. Let's say the user type in 2/5/2010 on the txtDate control but later on decides to pick a different option in the RadioButtonList control. After the autopostback from the RadioButtonList control, the txtDate that contained 2/5/2010 is now wiped out or cleared. So, my question is, how do I prevent this from happening?

View 1 Replies

AJAX :: MaskedEditExtender Control Rounding On Postback?

Apr 5, 2010

I have a few MaskedEditExtender controls on my page. QA has just notified me that on certain occasions, the values entered into the fields are being rounded down.

[code]....

When focus is set to the field, you get this: $ __,___.__ the cursor is to the left of the period and and you can enter any amount and if you type "period" it will move to the cents section. When tested, if you enter 55555 and tab out to another field everything is fine, but the field looks like this.. $ 55,555.__ now any posts that occur change this example to $ 50,000.00 does anyone know why and how i can fix this?

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved