[Mono-bugs] [Bug 76358][Blo] New - System.Web.UI.WebControls.DropDownList fails to render when databound

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Thu Oct 6 21:04:45 EDT 2005


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 jeffrey.a.becker at gmail.com.

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

--- shadow/76358	2005-10-06 21:04:45.000000000 -0400
+++ shadow/76358.tmp.10437	2005-10-06 21:04:45.000000000 -0400
@@ -0,0 +1,93 @@
+Bug#: 76358
+Product: Mono: Class Libraries
+Version: 1.1
+OS: GNU/Linux [Other]
+OS Details: Gentoo Linux
+Status: NEW   
+Resolution: 
+Severity: 008 One day
+Priority: Blocker
+Component: Sys.Web
+AssignedTo: gonzalo at ximian.com                            
+ReportedBy: jeffrey.a.becker at gmail.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: System.Web.UI.WebControls.DropDownList fails to render when databound
+
+Description of Problem:
+The Dropdown list control fails to render it's contents when being
+databound.  Instead of rendering key-value pairs, the DropDownList renders
+the the correct number of blank items.  
+
+Steps to reproduce the problem:
+1. Run attached ASP.Net page via Apache / mod_mono
+2. View Source to Confirm non-rendering
+3. 
+
+Actual Results:
+        <select name="ddlDataType" id="ddlDataType">
+	<option value=""></option>
+
+	<option value=""></option>
+	<option value=""></option>
+
+</select>
+
+Expected Results (Rendered by IIS 5.1 / ASP.Net 1.1.4322):
+
+        <select name="ddlDataType" id="ddlDataType">
+	<option value="System.String">System.String</option>
+
+	<option value="System.Int32">System.Int32</option>
+	<option value="System.Int16">System.Int16</option>
+
+</select>
+
+
+
+How often does this happen? : 100% of the time
+
+
+Additional Information: 
+
+
+File -- BugDemo.aspx:
+
+<%@ Page Language="C#" %>
+<script runat="server">
+
+    protected ArrayList DataTypes{
+        get{
+            object o = ViewState["_DataTypes"];
+            if(o ==null){
+                ArrayList al = new ArrayList();
+                al.Add("System.String");
+                al.Add("System.Int32");
+                al.Add("System.Int16");
+                o = al;
+                ViewState["_DataTypes"] = al;
+
+            }
+            return (ArrayList)o;
+        }
+        set{ ViewState["_DataTypes"] = value; }
+
+    }
+
+
+    protected void Page_Load(object sender, EventArgs e){
+        ddlDataType.DataBind();
+    }
+
+</script>
+<html>
+<head><title>DDL Bug Demo</title></head>
+<body>
+    <form runat="server">
+        <asp:DropDownList id="ddlDataType" runat="server" DataSource="<%#
+DataTypes %>"></asp:DropDownList>
+    </form>
+</body>
+</html>


More information about the mono-bugs mailing list