MaskedTextBox value clears on postback

4 posts, 0 answers
  1. MICHAEL O'SHEA
    MICHAEL O'SHEA avatar
    3 posts
    Member since:
    Oct 2009

    Posted 14 Oct 2010 Link to this post

    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>
  2. Martin
    Admin
    Martin avatar
    811 posts

    Posted 20 Oct 2010 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. MICHAEL O'SHEA
    MICHAEL O'SHEA avatar
    3 posts
    Member since:
    Oct 2009

    Posted 20 Oct 2010 Link to this post

    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.

  5. Martin
    Admin
    Martin avatar
    811 posts

    Posted 25 Oct 2010 Link to this post

    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
Back to Top