We migrated an application from asp.net 1.x to asp.net 2.0 and came across a problem with HTMLTextArea HTML control. The value property seems to behave differently now; seems like in 1.x it would store the content as HTML encoded but now in 2.0 it stores without HTML encoding. The problem occurs when the user enter " (double quotes) in one of the HTMLTextArea input field. In 1.x; it would convert this character to " , whereas in 2.0 it comes as " only.
I couldn't find this change in any of the documentation. I tested this in a new blank projects both in 1.x and 2.0 to confirm that its not impacted by any of the application configuration.
Also, when I referred to msdn online documentation to understand the difference between Value, InnerText and InnerHTML property of this control; it looked confusing. There it was mentioned that InnerHTML is not HTMLEncoded; whereas InnerText is HTMLEncoded. The documentation also explained this with an example. However, I had a doubt that the description given is exactly opposite for both properties and confirmed this by trying an example and the actual output came exactly opposite to the output expected per the documentation. Here's are the links that I referred
http://msdn2.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlcontainercontrol.innertext(VS.80).aspx
http://msdn2.microsoft.com/en-us/library/system.web.ui.htmlcontrols.htmlcontainercontrol.innerhtml(VS.80).aspx
Now, to fix this, I just wanted to know if the behaviour for the value property can be changed globally and if there are other HTML controls as well for whom this change is applicable.
Any response will be appreciable.
thanks,
Naresh Rohra.