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

"<" issue on Radtextbox

4 Answers 666 Views
Input
This is a migrated thread and some comments may be shown as answers.
Dhamodharan
Top achievements
Rank 1
Dhamodharan asked on 24 Jan 2014, 09:21 AM
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

4 Answers, 1 is accepted

Sort by
0
Princy
Top achievements
Rank 2
answered on 24 Jan 2014, 11:28 AM
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.
0
Dhamodharan
Top achievements
Rank 1
answered on 24 Jan 2014, 11:38 AM
Hi Princy,
Thanks princy, I have already tried that, but my requirement to fix something based on the radtextboxcontrol not on page.






Thanks
0
Anandhi
Top achievements
Rank 1
answered on 24 Jan 2014, 12:09 PM
Hi  Princy,

I too need a solution for the same requirement.

Thanks
0
Princy
Top achievements
Rank 2
answered on 27 Jan 2014, 04:19 AM
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.
Tags
Input
Asked by
Dhamodharan
Top achievements
Rank 1
Answers by
Princy
Top achievements
Rank 2
Dhamodharan
Top achievements
Rank 1
Anandhi
Top achievements
Rank 1
Share this question
or