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

Retrieving RadMaskedTextBox Value through Request.Form

2 Answers 58 Views
Input
This is a migrated thread and some comments may be shown as answers.
Erick
Top achievements
Rank 1
Erick asked on 03 Nov 2008, 04:20 PM
I need to retrieve the RadMaskedTextBox through a Request.Form method.

I have found that there is a hidden input named something like "ctl00_InputName_text" that I can use, but the value that comes back include the input mask prompt and literals (ie "65656-____" for zip+4 mask).

Is there another hidden input that does not include the mask prompt and literals?

2 Answers, 1 is accepted

Sort by
0
Erick
Top achievements
Rank 1
answered on 19 Nov 2008, 08:49 PM
No reponses?
0
Kevin Babcock
Top achievements
Rank 1
answered on 20 Nov 2008, 05:25 AM
Hi Erick,

The RadMaskedTextBox sends the data back to the server with mask and literals. There is no hidden input element that contains the stripped-down value. The raw value is parsed on the server when the LoadPostData() method (a member of IPostBackDataHandler) is called. You can access this value by referencing the RadMaskedTextBox.Text property on the server, or by calling the client-side RadMaskedTextBox object's get_value() function.

I hope this helps. If you have any further questions, please let me know.

Regards,
Kevin Babcock
Tags
Input
Asked by
Erick
Top achievements
Rank 1
Answers by
Erick
Top achievements
Rank 1
Kevin Babcock
Top achievements
Rank 1
Share this question
or