[Mono-bugs] [Bug 81362][Nor] New - DataList not rendering IList data

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Apr 12 13:42:14 EDT 2007


Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.

Changed by wojtowicz.norbert at gmail.com.

http://bugzilla.ximian.com/show_bug.cgi?id=81362

--- shadow/81362	2007-04-12 13:42:14.000000000 -0400
+++ shadow/81362.tmp.1125	2007-04-12 13:42:14.000000000 -0400
@@ -0,0 +1,68 @@
+Bug#: 81362
+Product: Mono: Class Libraries
+Version: 1.2
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mhabersack at novell.com                            
+ReportedBy: wojtowicz.norbert at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DataList not rendering IList data
+
+Description of Problem:
+
+DataList not rendering IList data. Tried with List<string> and String[].
+
+Steps to reproduce the problem:
+
+[C#]
+using System;
+using System.Data;
+using System.Web;
+using System.Web.UI;
+using System.Web.UI.WebControls;
+using System.Collections;
+using System.Collections.Generic;
+
+class MainClass
+{
+  public static void Main ()
+  {
+    DataList user_list = new DataList();
+    List<string> str = new List<string>();
+    str.Add("foo");
+    user_list.DataSource = str;
+    user_list.DataBind();
+
+    HtmlTextWriter h = new HtmlTextWriter(Console.Out);
+    user_list.RenderControl(h);
+}
+}
+
+Actual Results:
+
+% gmcs -r:System.Web.dll,System.Data.dll bug.cs && mono bug.exe
+<table cellspacing="0" border="0" style="border-collapse:collapse;">
+        <tr>
+                <td></td>
+        </tr>
+
+Expected Results:
+% gmcs -r:System.Web.dll,System.Data.dll bug.cs && mono bug.exe
+<table cellspacing="0" border="0" style="border-collapse:collapse;">
+        <tr>
+                <td>foo</td>
+        </tr>
+
+How often does this happen? 
+
+Always.
+
+Additional Information:


More information about the mono-bugs mailing list