[Mono-bugs] [Bug 689496] New: Unremovable tab char when using TextBox with multiline mode in an UpdatePanel

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Sun Apr 24 13:33:07 EDT 2011


https://bugzilla.novell.com/show_bug.cgi?id=689496

https://bugzilla.novell.com/show_bug.cgi?id=689496#c0


           Summary: Unremovable tab char when using TextBox with multiline
                    mode in an UpdatePanel
    Classification: Mono
           Product: Mono: Class Libraries
           Version: 2.10.x
          Platform: x86-64
        OS/Version: Linux
            Status: NEW
          Severity: Minor
          Priority: P5 - None
         Component: Sys.Web
        AssignedTo: mhabersack at novell.com
        ReportedBy: sky.rage at yahoo.de
         QAContact: mono-bugs at lists.ximian.com
          Found By: Other
           Blocker: No


Description of Problem:

When using a TextBox control with multiline as textmode in an UpdatePanel, a
new line and a tab is rendered, which results in a tab as default value that
isn't removable.

Example code:
<%@ Language="C#" %>
<form runat="server">
    <asp:ScriptManager id="scriptmanager" runat="server" />
            <div id="test" >
<asp:UpdatePanel id="updatepanel" runat="server">
    <ContentTemplate>
        <asp:TextBox ID="blah" TextMode="Multiline" runat="server" />
    </ContentTemplate>
</asp:UpdatePanel>    
            </div>
</form>

Actual Results:
<textarea cols="20" rows="2" name="ctl01$blah" id="ctl01_blah">
    </textarea> 

Expected Results:
<textarea cols="20" rows="2" name="ctl01$blah" id="ctl01_blah"></textarea> 

How often does this happen? 
Always when using a TextBox control in an UpdatePanel with multiline mode

Additional Information:
I think this bug is a consequence of this commit:
https://github.com/mono/mono/commit/d8838a64141cc3fb9507f476cff7efbd37f5afdb

Where a new line is added when NET_4_0 is true. (See line 213)

https://github.com/mono/mono/blob/d8838a64141cc3fb9507f476cff7efbd37f5afdb/mcs/class/System.Web/System.Web.UI.WebControls/TextBox.cs#L213

-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the mono-bugs mailing list