Home Dashboard Directory Help
Search

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


Status: 

Closed
 as Fixed Help for as Fixed


5
0
Sign in
to vote
Type: Bug
ID: 748052
Opened: 6/10/2012 8:15:56 AM
Access Restriction: Public
0
Workaround(s)
view
3
User(s) can reproduce this bug

Description

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.
Details
Sign in to post a comment.
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)
Sign in to post a workaround.