This is a migrated thread and some comments may be shown as answers.

MaskedTextBox value clears on postback

3 Answers 86 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
MICHAEL O'SHEA
Top achievements
Rank 1
MICHAEL O'SHEA asked on 14 Oct 2010, 04:43 PM
I am using maskedtextbox controls for a phone number.  I have the same code on multiple pages but on one of them, the value of the maskedtextbox controls are cleared on postback.  All the other places with the same exact code (copy and pasted) are working fine but for some reason the values are cleared on one page.  The bug has to do with the control being on the Login page before you login (it is used during registration).  I took out the Forms Authentication, and the values were no longer cleared on the login page on postback.  I am able to get around this by just taking the register page out of the part of my application that needs to be authenticated, but it is a bug that should be fixed.

(<telerik:RadMaskedTextBox ShowSpinButtons="false" IncrementSettings-InterceptArrowKeys="false"
                IncrementSettings-InterceptMouseWheel="false" ID="Telephone1" MaxLength="3" Width="30px" runat="server" Mask="###"></telerik:RadMaskedTextBox>) <telerik:RadMaskedTextBox ShowSpinButtons="false" IncrementSettings-InterceptArrowKeys="false"
                IncrementSettings-InterceptMouseWheel="false" ID="Telephone2" MaxLength="3" Width="30px" runat="server" Mask="###"></telerik:RadMaskedTextBox>-<telerik:RadMaskedTextBox ShowSpinButtons="false" IncrementSettings-InterceptArrowKeys="false"
                IncrementSettings-InterceptMouseWheel="false" ID="Telephone3" MaxLength="4" Width="40px" runat="server" Mask="####"></telerik:RadMaskedTextBox>

3 Answers, 1 is accepted

Sort by
0
Martin
Telerik team
answered on 20 Oct 2010, 09:16 AM
Hello RAJ PAREEK,

I have tried to reproduce the issue locally but without success. Would you please verify the exact version of RadControls that you are using? Additionally have you tried whether you can reproduce the problem with a standard TextBox control instead of a RadMaskedTextBox? Let me know about what your findings are.

Regards,
Martin
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
0
MICHAEL O'SHEA
Top achievements
Rank 1
answered on 20 Oct 2010, 03:25 PM
The version that I am using is 2010.1.519.35.  TextBox controls and any other ASP.NET controls work fine.  I just tested it out and no telerik controls work on the page.

0
Martin
Telerik team
answered on 25 Oct 2010, 04:15 PM
Hello RAJ PAREEK,

Using the version you have specified, and the code from your initial post, I have created a small sample that works as expected on my side. Please give it try and let me know how it goes on your end.

Regards,
Martin
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
Ajax
Asked by
MICHAEL O'SHEA
Top achievements
Rank 1
Answers by
Martin
Telerik team
MICHAEL O'SHEA
Top achievements
Rank 1
Share this question
or