[Mono-bugs] [Bug 626084] New: Html.TextArea exception thrown, when same code works on MS.NET

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Tue Jul 27 16:10:03 EDT 2010


http://bugzilla.novell.com/show_bug.cgi?id=626084

http://bugzilla.novell.com/show_bug.cgi?id=626084#c0


           Summary: Html.TextArea exception thrown, when same code works
                    on MS.NET
    Classification: Mono
           Product: Mono: Runtime
           Version: 2.6.x
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: misc
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: novell at pasichnyk.net
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US)
AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.99 Safari/533.4

One of the method overloads throws an exeception when a string.Empty is passed
in instead of a NULL.

Reproducible: Always

Steps to Reproduce:
1. Add a Html.TextArea to a MVC2 View
2. View the page
3. Exception thrown
Actual Results:  
Exception is thrown, error page shown.

Expected Results:  
Page loads and Html.TextArea is displayed with the provided content

This works:  <%= Html.TextArea("body", Model.TOSAcceptance.Body, 30, 115, 
null)%> 

This errors: <%= Html.TextArea("body", Model.TOSAcceptance.Body, 30, 115,
string.Empty)%>

This errors: <%= Html.TextArea("body", Model.TOSAcceptance.Body, 30, 115, "")%>


Both work on MS.NET.

Pastebin of the exception:  http://pastebin.com/jU2H6w6u

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


More information about the mono-bugs mailing list