"<" issue on Radtextbox

5 posts, 0 answers
  1. Dhamodharan
    Dhamodharan avatar
    300 posts
    Member since:
    Sep 2010

    Posted 24 Jan 2014 Link to this post

    Hi,
    I am Using the Radtextbox to save a string values. When it contains a "<" continued by String it generate a error on postback as follows

    JavaScript runtime error: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500

    If i replace the"<" with space as follows "< " it works fine, but i should not use this technique. i need a working solution for this issue.






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

    Posted 24 Jan 2014 Link to this post

    Hi Dhamodharan,

    Please have a look into this forum thread which discuss about the same scenario.Let me know if you have any concern.

    Thanks,
    Princy.
  3. Dhamodharan
    Dhamodharan avatar
    300 posts
    Member since:
    Sep 2010

    Posted 24 Jan 2014 Link to this post

    Hi Princy,
    Thanks princy, I have already tried that, but my requirement to fix something based on the radtextboxcontrol not on page.






    Thanks
  4. Anandhi
    Anandhi avatar
    12 posts
    Member since:
    Apr 2013

    Posted 24 Jan 2014 Link to this post

    Hi  Princy,

    I too need a solution for the same requirement.

    Thanks
  5. Princy
    Princy avatar
    17421 posts
    Member since:
    Mar 2007

    Posted 26 Jan 2014 in reply to Anandhi Link to this post

    Hi,

    As a work around please try the following code snippet which works fine at my end.

    C#:
    protected void Page_Load(object sender, EventArgs e)
    {
        RadTextBox1.Text = Server.HtmlEncode("<Demo");
    }
    protected void RadButton1_Click(object sender, EventArgs e)
    {
        string value = RadTextBox1.Text;
    }

    Thanks,
    Princy.
Back to Top