CodeVerge.Net Beta


   Explore    Item Entry    Members      Register  Login  
NEWSGROUP
.NET
Algorithms-Data Structures
Asp.Net
C Plus Plus
CSharp
Database
HTML
Javascript
Linq
Other
Regular Expressions
VB.Net
XML

Free Download:




Zone: > NEWSGROUP > Asp.Net Forum > migration_to_asp.net.migrating_from_asp.net_1.x_to_asp.net_2.0 Tags:
Item Type: NewsGroup Date Entered: 2/25/2008 6:34:16 AM Date Modified: Subscribers: 0 Subscribe Alert
Rate It:
(NR, 0)
XPoints: N/A Replies: 0 Views: 31 Favorited: 0 Favorite
Can Reply:  No Members Can Edit: No Online: Yes
1 Items, 1 Pages 1 |< << Go >> >|
NareshR
Asp.Net User
Problem with HTMLTextArea control's Value property!2/25/2008 6:34:16 AM

0/0

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 &quot; , 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. 

1 Items, 1 Pages 1 |< << Go >> >|


Free Download:

Books:
.Net Test Automation Recipes: A Problem-solution Approach Authors: James D. McCaffrey, Pages: 380, Published: 2006
Practical .NET2 and C#2: Harness the Platform, the Language, the Framework Authors: Patrick Smacchia, Pages: 896, Published: 2006
Visual Basic .NET Developer's Guide to ASP.NET, XML, and ADO.NET Authors: Jeffrey P. McManus, Chris Kinsman, Pages: 592, Published: 2002
Database Management: With Website Development Applications Authors: Greg Riccardi, Pages: 417, Published: 2002

Web:
Problem with HTMLTextArea control's Value property! - ASP.NET Forums 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 ...
HtmlTextArea Properties (System.Web.UI.HtmlControls) Protected property, HasChildViewState, Gets a value indicating whether the current server control's child controls have any saved view-state settings. ...
HtmlTextArea.Value Property (System.Web.UI.HtmlControls) Property Value. The text entered in the HtmlTextArea control. The default value is ... Validation server controls are also provided to assess user input. ...
ASP.NET HtmlTextArea Control The HtmlTextArea control is used to control a