Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    ASP.NET


Advertisements:










Using AJAX MaskedEditExtender And MaskedEditValidator To Validate The Phone?


I have text box to enter a phone number. I'm using AJAX MaskedEditExtender and MaskedEditValidator to validate the phone.I have no problem with mask but the problem nothing happen when I enter for example only 3 number then lose the focus but as soon the focus on I will see the error message and it will disappear as soon as I write one number.

all what I want to get the error message if the user did not enter 9 numbers after lose the focus.

here is my code: <asp:TextBox ID="txtHomePhone" runat="server" ontextchanged="txtHomePhone_TextChanged"></asp:TextBox>

<cc1:MaskedEditExtender ID="txtHomePhone_MEExt" runat="server" TargetControlID = "txtHomePhone" Mask = "(999)999-9999" MaskType ="Number" AutoComplete="False"
[code]....


View 4 Replies (Posted: Feb 06, 2010 11:50 AM)

Sponsored Links:

Related Forum Messages For ASP.NET category:
AJAX :: Mask And ValidationExpression (MaskedEditExtender - MaskedEditValidator) Validate A Field Called "RIF"
I am not sure what I am doing wrong.I am trying to validate afield called "RIF" My mask is (letter J dash eight digit dash one digit) J-43434545-9 I tried various Mask and Validation Expressions When I enter the correct it considers it invalid

<ajaxToolkit:MaskedEditExtender
ID="MaskedEditExtender5"
runat="server"
TargetControlID="txtRif"
Mask="L?99999999?9"
MessageValidatorTip="true"
OnFocusCssClass="MaskedEditFocus"
OnInvalidCssClass="MaskedEditError"
MaskType="None"
ErrorTooltipEnabled="True">
</ajaxToolkit:MaskedEditExtender>
<ajaxToolkit:MaskedEditValidator
ID="MaskedEditValidator5"
runat="server"
ControlExtender="MaskedEditExtender5"
ControlToValidate="txtRif"
IsValidEmpty="true"
InvalidValueMessage="RIF format is invalid"
Display="Dynamic"
TooltipMessage=""
InvalidValueBlurredMessage=""
ValidationGroup="MKE"
ValidationExpression="^[azAZ]{1}-d{8}-d{1}$"
Width="8px">
</ajaxToolkit:MaskedEditValidator>

Posted: Nov 26, 2009 08:29 PM

View 3 Replies!   View Related
AJAX :: Configure MaskedEditExtender & MaskedEditValidator?
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 fieldsto beof 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]...

Posted: Oct 13, 2010 03:22 PM

View 3 Replies!   View Related
AJAX :: Custom Textbox Using MaskedEditExtender And MaskedEditValidator?
this is exactly what I do:

public class MyTestTextBox : TextBox
{
#region Fields
private MaskedEditExtender _mee;
private MaskedEditValidator _mev;
#endregion
#region Constructors
public MyTestTextBox()
: base()
{
this._mee = new MaskedEditExtender();
this._mev = new MaskedEditValidator();
}
#endregion
#region Methods
protected override void CreateChildControls()..........

Posted: Aug 23, 2008 08:17 PM

View 4 Replies!   View Related
AJAX :: MaskedEditExtender And MaskedEditValidator Causing Refresh/postback?
I have the following tabpanel (it actually contains a bit more content, but that content doesnt influence my issue):

[code]....

When I remote the MaskedEditExtender and MaskedEditValidator, it doesnt show that (undesired) behaviour anymore.Is there something special these controls do that cause them to refresh? Is there a workaround for this?

Posted: Sep 07, 2010 07:54 PM

View 1 Replies!   View Related
AJAX :: MaskedEditExtender Phone Dashes In Mask
I just started using the mask control. I have it working exactly the way I want with date but can't get the same behavior with Phone.

<AjaxControlToolkit:MaskedEditExtender
ID="mskTbTicketOpenedDate"
runat="server"
TargetControlID="tbTicketOpenedDate"
Mask="99/99/9999"
MessageValidatorTip="true"
OnFocusCssClass="MaskedEditFocus"
OnInvalidCssClass="MaskedEditError"
MaskType="Date"
ErrorTooltipEnabled="True" />

Date Mask Validator:

<asp:RequiredFieldValidator
ID="rfValTbTicketOpenedDate"
runat="server"
ControlToValidate="tbTicketOpenedDate"
Display="Dynamic"
ErrorMessage="required!<br />" />
<AjaxControlToolkit:MaskedEditValidator
ID="mskValTbTicketOpenedDateInvalid"
runat="server"
ControlExtender="mskTbTicketOpenedDate"
ControlToValidate="tbTicketOpenedDate"
IsValidEmpty="false"
InvalidValueMessage="Date is invalid<br />"
Display="Dynamic" />

Breaking out the required field validation helped me get the date textbox to behave the way I need. Just positioning validation messages and such. Behavior I like here is that TextBox has no mask to start (focus off of textbox). When you put the cursor in the textbox or the textbox gets focus then the mask shows up: __/__/____. As you type the underscore placeholders dissapear but the '/' chars stay in place.

And finally, this is key, when you have a correct date and take the focus away from the text box the dashes stay in place. I just realized that is because the date mask seems to fill in the blank spaces with the current date. I cannot get this behavior with a phone. Granted there is no phone mask type.Here is the phone code:

<AjaxControlToolkit:MaskedEditExtender
ID="mskTbPhone"
runat="server"
TargetControlID="tbPhone"
Mask="999-999-9999"
ClearMaskOnLostFocus="true"
MessageValidatorTip="true"
OnFocusCssClass="MaskedEditFocus"
OnInvalidCssClass="MaskedEditError"
MaskType="None"
ErrorTooltipEnabled="True" />

I have tried MaskType set to number but it doesn't change the behavior. Right now the dashes dissapear when I take the focus off of the phone textbox.One thing I noticed with date is that if it is incomplete when it loses focus it fills in the rest with the current date values. Since there is no Phone mask type that behavior is not built in. Does anyone know how to set a default behavior so if you type in 55 in would automatically finish? 555-55-5555 And when you take the focus off it would keep the dashes. But if the textbox is empty I want with no focus the mask should dissapear completely.

Posted: Feb 11, 2010 03:11 PM

View 3 Replies!   View Related
AJAX :: Phone Number Mask Format With MaskedEditExtender
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?

Posted: Feb 21, 2011 01:07 PM

View 2 Replies!   View Related
AJAX :: MaskedEditValidator Validate A Date?
I have a textbox and an image on a website. When I press the image, the calendar is extended (works!); also, I use a masked edit extender to show the right mask (works!)But when I use the MaskedEditValidator to get the date input validated, this is where I get stuck :s (doesn't work [:S])I added my very simple demo code below, can someone tell me what I am doing wrong?For example, when I input a date like 99/99/9999, the Validator doesn't complain, but it isn't a valid date :sMy code:

[Code]....

Posted: Jul 31, 2007 02:37 PM

View 2 Replies!   View Related
How To Use MaskedEditExtender And MaskedEditValidator
Well i cannot find a solution,so..

I will post my code.The problem is that whatever date i try (i use greek d/m/y but i also tried m/d/y) it gives me the "error!" tooltip.

I've tried complex code,simple code, ValidationExpression,Globalization,no globalization.Nothing works.
Anyway to it's simplest form:

Code:

[code]....

Posted: Feb 20th, 2010, 12:42 PM

View 10 Replies!   View Related
AJAX :: Using "MaskedEditExtender" Along With "MaskedEditValidator"?
I am Using"MaskedEditExtender" along with "MaskedEditValidator" in my page with a textbox. it is not working and showing the NullReference exception. the call stack showing the following details

[NullReferenceException: Object reference not set to an instance of an object.]
AjaxControlToolkit.MaskedEditValidator.OnPreRender(EventArgs e) in C:UsersswaltherProjectsAspNetAjaxReleases30930AjaxControlToolkitSourceAjaxControlToolkitMaskedEditMaskedEditValidator.cs:384

Posted: Mar 11, 2011 04:59 AM

View 3 Replies!   View Related
C# - What Are The Condition To Validate A Phone Number
What are the condition to validate a phone number?

Well firstly it has to be a numerical value, can include the following numbers 0123456789 and the plus symbol. +

But what about the following conditions, where do you get this data?

-It has to be in the format [country dial code + area code + phone number]

-It has to be a min and max length

EDIT: also what is the min and max length of a mobile/cell phone number?

Posted: Dec 3 10 at 14:21

View 5 Replies!   View Related
AJAX :: MaskedEditValidator / Strange Behaviour?
I am using theMaskedEditExtender andMaskedEditValidator, but have experienced some strange
behaviour. (See code example below). When entering a date into the textbox this is what I see:

1. The mask

2. Entering the date and time e.g. "19-01-1980 10:11:12"

3. When removing focus from the textbox the result is: "19-01-1980 19:01:19"

The six first digits of the date is copied as the time? If entering aday of the month larger than 23 and any givenmonth, year and time(eg. 25-10-1980 12:12:12) the validation fails as the six first digits are copied to the time resulting in a time 25:10:19 which obviously is not valid.

I have downloaded the AJAX toolkit sample code and experience the exact same behaviour. When running the AJAX Toolkit samples from[URL] works fine!

Additinal info: Culture is danish (DateTime format is dd-MM-yyyy hh:mm:ss). Tried changing my systems culture to en-US but same behaviour.

Code:

[Code]....

Posted: Dec 20, 2010 10:36 AM

View 5 Replies!   View Related
AJAX :: Disable MaskedEditValidator Through JavaScript?
I'm trying to disable a MaskedEditValidator control through JavaScript.

The following approach works for other types of validors (RequiredFieldValidator) but doesn't seem to work for the MaskedEditValidator

[Code]....

Posted: May 13, 2010 09:07 AM

View 2 Replies!   View Related
AJAX :: MaskedEditValidator And MinimumValue Property - How To Set Dates
I have2 scenarios here for using the MaskedEditValidator for a date field. I'll start with the easier one first.

1) I have a date field. I want to set the MaskedEditValidator's minimum value property to TODAY's date. So for example, if the user enter's a date earlier than today, the AJAX control will show a message stating "you can't input a date earlier than today".

2) I have 2 date fields - 1st one is 'start date' and 2nd one is 'end date'. I want to set the MaskedEditValidator for the end date so that the minimum value property is the date from the 'start date' field. So this way, the user can't enter a date in the 'end date' field that is earlier than what is in the 'start date' field.

Are these 2 scenarios possible? Or should I try another option (Javascript, Jquery, etc...)?

Posted: Feb 16, 2011 11:28 PM

View 1 Replies!   View Related
AJAX :: Bugs Using MaskedEditValidator When Checking Date?
I am facing a problem when using ajaxcontroltoolkit 30305121 or 3.0.20229.0 version. The following code is using calendarextender which is format with 'yyyy/MM/dd' and then the mask of maskededitextender is '9999/99/99', it is working fine when I am using '99/99/9999', but it cannot work with '9999/99/99'.

<asp:TextBox ID="txtStartDate" runat="server" Width="105px"></asp:TextBox>
<asp:Image ID="Image1" runat="server" ImageUrl="~/images/DateSelector.gif" />
<cc1:CalendarExtender
ID="CalendarExtender1" runat="server" PopupButtonID="Image1" TargetControlID="txtStartDate"

[URL]....

Posted: Nov 30, 2009 05:49 AM

View 6 Replies!   View Related
AJAX :: MaskedEditValidator And Panel's DefaultButton Not Working?
I have a panel, with several textboxes and an ImageButton inside of it. One of the textboxes has a MaskedEditExtender and a MaskedEditValidator associated with it. When I hit enter from any other textbox besides the one with the MaskedEditValidator the defaultbutton that is defined in the Panel's DefaultButton property handles the enter key.However, when I am in the textbox with the MaskedEditValidator, the first button on the form is receiving the enter key. Now, if I take the MaskedEditExtender off of the page, and just leave the MaskedEditExtender, everything behaves as it should.Can anyone offer any insight into how I may get this to work properly, or is this a known bug?I tried searching the forums and found a similar post, but no conclusion was ever reached.

Posted: Mar 16, 2010 01:46 PM

View 3 Replies!   View Related
AJAX :: Trying To Disable A MaskedEditValidator Control Through JavaScript?
I'm trying to disable a MaskedEditValidator control through JavaScript.

The following approach works for other types of validors (RequiredFieldValidator) but doesn't seem to work for the MaskedEditValidator

[Code]....

Posted: Oct 28, 2009 01:34 PM

View 2 Replies!   View Related
AJAX :: MaskedEditValidator MaskedEditServerValidator Event Is Not Working After PostBack?
Protected Sub MaskedEditValidator_MaskedEditServerValidator(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.ServerValidateEventArgs) Handles MaskedEditValidator.MaskedEditServerValidator
If Me.rbStlRentalInclu.checked Then
e.IsValid = False
End If
End Sub

TheMaskedEditValidator did not show Invalid Message after postback, why?

Posted: Mar 15, 2007 08:09 AM

View 11 Replies!   View Related
AJAX :: Can't Get The MaskedEditValidator To Work With The ValidationSummary In Ways Of Separate Information
I can't get the MaskedEditValidator to work with the ValidationSummary in ways of separate information: a '*' next to the textbox, and a string message in the validator.

[Code]....

Question: With 'standard' validation controls, they put the "ErrorText" value in the ValidationSummary, and the "Text" value right next to the TextBox. But the AJAX Validators don't handle different messages for next to the textbox and summarry.

Am I doing something wrong? Or is it just not possible.

Posted: Nov 13, 2007 07:33 AM

View 3 Replies!   View Related
AJAX :: MaskedEditValidator Outside Gridview Disable Delete Command In ItemTemplate Field
Something "weird" is happening with my ASP.NET application. I have a MasterPage with WebForms, and inside one of them, I have an ASP TextBox which is controlled by the MaskedEditExtender/MaskedEditValidator couple. Underneath, I have a GridView with 2 columns, an Edit ASP Command Field, an ItemTemplate which contains an ASP ImageButton with a Delete CommandName linked to a GridViewDelete Event through the OnRowDeleting attribute. The GridView is binded with SQL Server data while the page is loading.

It appears that once the page is loaded, if I want to delete a row by clicking on the ASP ImageButton, nothing appears. I have first to do something else with the GridView (raise an Edit Event for example), then it's accessible. I try different stuff to catch the source of the problem, and the "weird" part appeared when I deleted the MaskedEditValidator, just keeping the MaskedEditExtender : the Delete ASP ImageButton worked since the page loads!

Posted: Jul 08, 2010 11:50 AM

View 2 Replies!   View Related
AJAX :: Removed-added The Toolkit Toolbox / The Error Occurs P.e. In MaskedEditvalidator?
So basically when i open the page i get the error above.

I've removed-added the toolkit toolbox.The error occurs p.e. in MaskedEditvalidator when i remove the mask from

MaskedEditExtender.Ok i know that it probably needs a mask and it crashes but what the hell is the

C:UsersswaltherProjectsAspNetAjaxReleases30930AjaxControlToolkitSourceAjaxControlToolkitMaskedEditMaskedEditCommon.cs ?? I don't even use c: for any project.Who is swalther?WTH?

And is there a MaskedEditCommon.cs in the toolkit?I did not find any MaskedEditCommon.cs in whatever, version library or whatever i downloaded.

Error:[ArgumentOutOfRangeException: StartIndex cannot be less than zero. Parameter name: startIndex] System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy) +7490863 System.String.Substring(Int32 startIndex, Int32 length)

Posted: Feb 19, 2010 11:29 PM

View 1 Replies!   View Related
AJAX :: Can Use A MaskedEditExtender With A Combo Box
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?

Posted: Feb 23, 2011 06:51 PM

View 4 Replies!   View Related
AJAX :: MaskedEditExtender Multilanguage?
<cc1:MaskedEditValidator
ID="MaskedEditValidator5"
runat="server" [code]....

Posted: Sep 26, 2010 01:05 PM

View 1 Replies!   View Related
AJAX :: What Could Cause MaskedEditExtender To Be So Slow
30 seconds or more to display the date after it's typed in on some computers.

Posted: Dec 18, 2009 04:55 PM

View 3 Replies!   View Related
AJAX :: MaskedEditExtender Decimal Values?
Iam usingMaskedEditExtender 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.

Posted: May 10, 2010 06:26 PM

View 5 Replies!   View Related
AJAX :: MaskedEditExtender Gets Focus On Postback?
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]....

Posted: Sep 02, 2010 09:37 PM

View 3 Replies!   View Related
AJAX :: Set The Focus-position In MaskedEditExtender?
I've played around a bit with the MaskedEditExtender.. However when looking into the

sample web siteyou'll see, that the cursor is placed just before the decimal-sign, when entering the number field. I like that behavior, but I cannot get it to work. There is no property setting this, as I see it.

Has anyone managed to set the focus-position in MaskedEditExtender like at the sample web site?

Posted: Jul 17, 2007 08:55 PM

View 3 Replies!   View Related
AJAX :: Set Decimal Value To MaskedEditExtender Textbox?
I have a textbox withMaskedEditExtender.In Which,I've set mask as '999.99'.Problem is ,When i get the decimal value from database and assign to textbox.It shows the wrong value.For example,When I assign the decimal value 89.95 from database.textbox shows 899.50 instead of 89.95.

Posted: Nov 22, 2009 06:55 AM

View 4 Replies!   View Related
AJAX :: MaskedEditExtender Not Functioning Properly
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.

Posted: Jun 07, 2010 01:26 PM

View 6 Replies!   View Related
AJAX :: How To Clear The Textbox Associated MaskedEditExtender
the code like below, how to clear tbxDate when input an invalid date use javascript

[Code]....

Posted: May 24, 2010 05:41 AM

View 3 Replies!   View Related
AJAX :: Strange Results With MaskedEditExtender?
I've inherited a web project from another company, andI'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.

Posted: Oct 12, 2010 07:08 PM

View 1 Replies!   View Related
AJAX :: Can't Add A MaskedEditExtender To A Template Field?
I'veadded a script manager control to an ASP.NET page. And I've alsogot adetails 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 thedatabase, and the other field is associated with a datetime field in the database, so Iwant to put a MaskedEditExtender into the template field to associate with the textboxes there. However, no matter how many timesI try to copy the MaskedEditExtenderinto the template field, VS 2010 will not let me.

Posted: Nov 27, 2010 12:32 AM

View 13 Replies!   View Related
AJAX :: Can't Get MaskedEditExtender/Validator To Work?
After about two hours of fiddling with it myself and searching the 'Net for anything that would help, I haven't run across anything that seemsHere's my code:

[Code]....

As you can see, I'm simply trying to allow only numbers to be entered in the textbosand validate for anSSN in the format ###-##-####. I've tried everything I can think of and my own social security number won't even validate! [:O]

Posted: Jul 12, 2007 03:29 PM

View 31 Replies!   View Related
AJAX :: Conflict Between AsyncfileUpload And MaskedEditExtender?
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]....

Posted: Jan 28, 2010 05:27 PM

View 2 Replies!   View Related
AJAX :: Using Web User Control With MaskedEditExtender?
I am using Web User control with MaskEditExtender and MaskEditValidatore .

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

Posted: May 15, 2010 02:58 PM

View 2 Replies!   View Related
AJAX :: CalendarExtender Combined With MaskedEditExtender Not Working
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]....

Posted: Feb 16, 2010 07:20 PM

View 8 Replies!   View Related
AJAX :: MaskedEditExtender And CalendarExtender / Is Is Possible To Make It Insert 20 Instead Of 00
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 ?

Posted: Nov 19, 2010 01:49 PM

View 7 Replies!   View Related
AJAX :: MaskedEditExtender Looses Format When Not In Focus?
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.

Posted: Sep 23, 2010 07:48 AM

View 2 Replies!   View Related
AJAX :: Postback Causes MaskedEditExtender To Clear Current Value?
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?

Posted: Feb 26, 2010 03:18 PM

View 1 Replies!   View Related
AJAX :: TextBox With MaskedEditExtender Looses Value After Postback?
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.

Posted: Mar 19, 2010 05:06 PM

View 3 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved