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

Problem in getting RadMaskedTextbox values in code

2 Answers 109 Views
Input
This is a migrated thread and some comments may be shown as answers.
ARUN RAJA
Top achievements
Rank 1
ARUN RAJA asked on 16 Jul 2010, 09:21 AM
Hello

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 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 16 Jul 2010, 10:02 AM
Hello,

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.

Thanks,
Princy.
0
PINCO
Top achievements
Rank 1
answered on 20 May 2012, 09:26 AM
Thanks Princy....
Tags
Input
Asked by
ARUN RAJA
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
PINCO
Top achievements
Rank 1
Share this question
or