RadTextBox casues validation errors

2 posts, 0 answers
  1. psanchez117
    psanchez117 avatar
    3 posts
    Member since:
    Jul 2012

    Posted 08 Aug 2011 Link to this post

    I have been searching all over for an answer to this but to no avail... I am hoping someone here can help me.
    I have a form that is intended to send field information to a support email address. I have disabled validation on all of the controls on this form to troubleshoot this.
    When i fill the form out and click submit, it works fine, i get my Email as expected...

    However, if i have special characters in any of the radtextbox fields, i get a validation error. Just the simple phrase <ValidateThis> will break the page.

    Now i have created a routine to clean the text and replace the characters which ascii equivalents but the problem is that the validation error occurs before anything is run. How do i intercept this?

  2. Pavlina
    Pavlina avatar
    6187 posts

    Posted 11 Aug 2011 Link to this post

    Hello Phil,

    One option to avoid this behavior is to attach the OnKeyPress event of RadTextBox and cancel the event if invalid character is pressed. 

    Please go through the link below:

    All the best,
    the Telerik team

    Browse the vast support resources we have to jump start your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.

Back to Top