TextBox with MultiLine TextMode adds additional linebreak to the output - by ImarSpaanjaars

Status : 

  Fixed<br /><br />
		This item has been fixed in the current or upcoming version of this product.<br /><br />
		A more detailed explanation for the resolution of this particular item may have been provided in the comments section.

Sign in
to vote
ID 748052 Comments
Status Closed Workarounds
Type Bug Repros 4
Opened 6/10/2012 8:15:56 AM
Access Restriction Public


When you have a TextBox control with its type set to MultiLine, .NET inserts an additional encoded line break to the output. IE 9 seems to ignore this linebreak, but other brwosers show it, causing incorrect behavior.

This happens when you assign text to the control, but also on the first load when no text is assigned, causing an extra linebreak to appear in the final HTML.
Sign in to post a comment.
Posted by ahwm on 11/11/2016 at 12:53 PM
This is still an issue in VS 2015 Update 3 when running a website with 4.5 targeted but has the controlRenderingCompatibilityVersion="4.0" attribute. Removing the attribute on the pages element fixed it. But this is still a bug.
Posted by E4EDB139-3A55-4BF2-A203-9F49A0572D72 on 6/13/2013 at 12:59 PM
This issue is not completely fixed. If you have a web application that is targeting the 4.5 framework but the Web.config pages element has the attribute controlRenderingCompatibilityVersion="4.0", then hex encoded carriage return and newline are prepended to the text content during rendering.

We converted a 4.0 web application to build as 4.5 and the default Web.config changes from Visual Studio adds the compatibility setting described above. Changing the compatibility mode to 4.5 fixes the problem. But, what other problems might that create? I guess we'll find out...

My vote: Still a bug.
Posted by Microsoft on 6/27/2012 at 5:39 AM
This issue has been fixed in VS 2012 RTM/.Net4.5 RTM.
Posted by Alvaro R. Dias on 6/23/2012 at 2:32 AM
This problem is happening for me in VS 2012 RC/.NET 4.5

Is there any update that I can apply to fix this?
Posted by Microsoft on 6/20/2012 at 4:30 PM
This issue has been fixed in the next release of VS2010/.Net 4.5.
Posted by Microsoft on 6/12/2012 at 2:20 AM
Thanks for your feedback.

We are rerouting this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.
Posted by Microsoft on 6/10/2012 at 8:57 AM
Thank you for your feedback, we are currently reviewing the issue you have submitted. If this issue is urgent, please contact support directly(http://support.microsoft.com)