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

RadTextBox value breaks AJAX

1 Answer 69 Views
Input
This is a migrated thread and some comments may be shown as answers.
Mihai Dinculescu
Top achievements
Rank 1
Mihai Dinculescu asked on 13 Mar 2011, 01:45 AM
Hello

I have a RadTextBox that after it get's populated with "Tuff Stuff™ Sky Blue Rectangular Carpet - 6` x 9`" value breaks future AJAX requests. The error is Message: Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500. 

Obviously it's that certain value that causes the problem. Using HtmlEncode on it fixes the problem however I'd like to get the text displayed as-in. I also don't need it edited, it's just read-only.

Any tips?

Regards
Mihai

1 Answer, 1 is accepted

Sort by
0
Mihai Dinculescu
Top achievements
Rank 1
answered on 13 Mar 2011, 02:34 AM
After further research I discovered that there's no way to display html chars in RadTextBox (just as you can't do it in a regular textbox) so I ended up using a RadEditor and set Enabled="false" style="overflow-y: auto;".
Tags
Input
Asked by
Mihai Dinculescu
Top achievements
Rank 1
Answers by
Mihai Dinculescu
Top achievements
Rank 1
Share this question
or