i create dynamic columns with the code above. But when the value of a row has the '&' character it displays the error. "Error occured while processing HTMLTextBox". How can i avoid this error without changing the values that are stored in the database from & to &.
3 Answers, 1 is accepted
answered on 25 Nov 2010, 03:22 PM
Your question has already been answered in the other forum thread you've posted to.
I'm having the same issue. Could you at least add the referenced post to this one.
answered on 01 Mar 2011, 05:13 PM
This is expected behavior. As outlined in the HtmlTextBox help article, we expect valid XHTML, and the "&" character is considered special (markup delimiter), so it needs to be encoded in order to be treated as regular text (the "&" character can be escaped with the "&" entity). It is good idea to do this in your data, as otherwise you would have to parse the data in your code, which is not recommended. Check the XHTML Validation help article elaborates on how you can handle exceptions caused by invalid XHTML.
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!