Retrieving RadMaskedTextBox Value through Request.Form

3 posts, 0 answers
  1. Erick
    Erick avatar
    12 posts
    Member since:
    Mar 2008

    Posted 03 Nov 2008 Link to this post

    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. Erick
    Erick avatar
    12 posts
    Member since:
    Mar 2008

    Posted 19 Nov 2008 Link to this post

    No reponses?
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Kevin Babcock
    Kevin Babcock avatar
    189 posts
    Member since:
    Mar 2007

    Posted 19 Nov 2008 Link to this post

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