Problem in getting RadMaskedTextbox values in code

3 posts, 0 answers
    ARUN RAJA avatar
    20 posts
    Member since:
    May 2010

    Posted 16 Jul 2010 Link to this post


    I am using RadMaskedTextBox

    <telerik:RadMaskedTextBox ID="txtContactPhoneFax" runat="server" Mask="(###) ###-#### ####"  Text='<%# Bind("Fax") %>'>      </telerik:RadMaskedTextBox>

    In application I am entered the values in textBox like -->  (222) 456-7778 7779

    When I get the values in code  like -->  txtContactPhoneFax.text
    It shows   --> 22245677787779 only

    But,I need the values in  code  like  (222) 456-7778 7779

    Thanks in Advance

  2. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 16 Jul 2010 Link to this post


    Use TextWithLiterals instead of Text to get the text the user entered, plus any literal characters in the mask.

    Check the section "Masked text box value" in the documentation.

  3. PINCO
    PINCO avatar
    5 posts
    Member since:
    May 2012

    Posted 20 May 2012 Link to this post

    Thanks Princy....
Back to Top