[Mono-bugs] [Bug 37124][Wis] New - Mono cannot render a DataGrid control

bugzilla-daemon@rocky.ximian.com bugzilla-daemon@rocky.ximian.com
Thu, 23 Jan 2003 10:52:24 -0500 (EST)


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 imitko@openlinksw.co.uk.

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

--- shadow/37124	Thu Jan 23 10:52:24 2003
+++ shadow/37124.tmp.12323	Thu Jan 23 10:52:24 2003
@@ -0,0 +1,93 @@
+Bug#: 37124
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: imitko@openlinksw.co.uk               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Mono cannot render a DataGrid control
+
+Description of Problem: Using XSP, Mono TDS to execute a simple ASPX page
+the page do not display anyhow datagrid component. 
+A similar page working fine with MS IIS in .NET enviroment.
+The trace shows that DataSet is filled out, and DataBind of DataGrid seems
+to me is passed. 
+
+
+Steps to reproduce the problem:
+1. have a fresh mono, mcs, xsp build
+1a. have a MS SQLServer 2000 with demo Northwind database installed and
+running 
+2. copy the page attached to the xsp/server/test
+2a. edit page and enter the right server in connection string
+3. run the XSP server 
+4. hit the page
+
+Actual Results:
+page containing the title only , no data set at all.
+
+Expected Results:
+to render a data grid on place of DataGrid control
+
+How often does this happen? 
+
+Every time.
+
+Additional Information: The page for effect
+
+<%@ Import Namespace="System.Data" %>
+<%@ Import Namespace="System.Data.SqlClient" %>
+
+<html>
+<script language="C#" runat="server">
+
+    protected void Page_Load(Object sender, EventArgs e) 
+    {
+        SqlConnection myConnection = new
+SqlConnection("server=<sql_server_name>;database=Northwind;Trusted_Connection=yes;User
+ID=sa");
+        SqlDataAdapter myCommand = new SqlDataAdapter("select * from
+Customers", myConnection);
+
+        DataSet ds = new DataSet();
+        myCommand.Fill(ds, "Customers");
+
+        Console.WriteLine ("----> before : '" + ds.Tables["Customers"] + "'
+" + ds.Tables);
+        foreach (DataTable tempTable in ds.Tables)
+          Console.WriteLine ("table: " + tempTable);
+
+        MyDataGrid.DataSource=ds.Tables["Customers"].DefaultView;
+        MyDataGrid.DataBind();
+    }
+
+</script>
+
+<body>
+
+  <h3><font face="Verdana">Simple Select to a DataGrid Control</font></h3>
+
+  <ASP:DataGrid id="MyDataGrid" runat="server"
+    Width="700"
+    BackColor="#ccccff" 
+    BorderColor="black"
+    ShowFooter="false" 
+    CellPadding=3 
+    CellSpacing="0"
+    Font-Name="Verdana"
+    Font-Size="8pt"
+    HeaderStyle-BackColor="#aaaadd"
+    EnableViewState="false"
+  />
+
+</body>
+</html>