[Mono-bugs] [Bug 651541] New: MakeBinary doesn't handle ExpressionType.ArrayIndex

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Thu Nov 4 18:45:31 EDT 2010


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

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


           Summary: MakeBinary doesn't handle ExpressionType.ArrayIndex
    Classification: Mono
           Product: Mono: Class Libraries
           Version: SVN
          Platform: i686
        OS/Version: openSUSE 11.2
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Sys.Core
        AssignedTo: jbevain at novell.com
        ReportedBy: dredd422 at gmail.com
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---
           Blocker: ---


User-Agent:       Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.7
(KHTML, like Gecko) Chrome/7.0.517.41 Safari/534.7

If you are using the html helper from System.Web.Mvc and try to use one of the
methods Html.*For(expression) with an array, an exception will be thrown.



Reproducible: Always

Steps to Reproduce:
<%for (int i = 0; i < Model.Students.Length; i++)%>
<%=   Html.TextBoxFor(Model.Students[i].Name);%>
Actual Results:  
Unhandled Exception: System.ArgumentException: MakeBinary expect a binary node
type

Expected Results:  
<input id="Students_0__Name" name="Students[0].Name" type="text" value="Dan" />

-- 
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