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: [email protected]
        ReportedBy: [email protected]
         QAContact: [email protected]
          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.
_______________________________________________
mono-bugs maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-bugs

Reply via email to