[Mono-bugs] [Bug 75379][Nor] New - DataGrid TemplateColumn ItemStyle-HorizontalAlign has become a case sensitive attribute

bugzilla-daemon at bugzilla.ximian.com bugzilla-daemon at bugzilla.ximian.com
Sat Jun 25 12:21:03 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 joe_audette at yahoo.com.

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

--- shadow/75379	2005-06-25 12:21:03.000000000 -0400
+++ shadow/75379.tmp.13772	2005-06-25 12:21:03.000000000 -0400
@@ -0,0 +1,153 @@
+Bug#: 75379
+Product: Mono: Class Libraries
+Version: 1.1
+OS: SUSE 9.2
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mono-bugs at ximian.com                            
+ReportedBy: joe_audette at yahoo.com               
+QAContact: mono-bugs at ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DataGrid TemplateColumn ItemStyle-HorizontalAlign has become a case sensitive attribute
+
+Please fill in this template when reporting a bug, unless you know what you
+are doing.
+Description of Problem:
+mono 1.1.8 rev 46493
+markup attribute raises error if upper case
+
+this does not happen on mono 1.1.7 or on Windows .NET
+
+
+Steps to reproduce the problem:
+1. Create a Template column with upper case attribute 
+<ASP:TEMPLATECOLUMN ITEMSTYLE-HORIZONTALALIGN="Center">
+2. 
+3. 
+
+Actual Results:
+Causes an error
+
+
+Expected Results:
+works the same as
+<ASP:TEMPLATECOLUMN ItemStyle-HorizontalAlign="Center">
+
+
+How often does this happen? 
+Every time
+
+
+Additional Information:
+Test page
+
+<%@ language="C#" %>
+
+
+
+<%@ import namespace="System.Data" %>
+<%@ import namespace="System.Data.SqlClient" %>
+<%@ import namespace="System.Reflection" %>
+
+<html>
+
+<script runat=server>
+
+	
+
+	void Page_Load (object sender, EventArgs e)
+	{
+		
+		dgTest.DataSource = GetEventData();
+		dgTest.DataBind();
+	}
+	
+	
+	
+	void Page_Init (object sender, EventArgs e)
+	{
+		
+		
+		
+	}
+	
+	DataTable GetEventData()
+	    {
+	        DataTable dt = new DataTable();
+	        
+	        dt.Columns.Add("EventTitle", typeof(String));
+	        dt.Columns.Add("EventDay", typeof(DateTime));
+	        dt.Columns.Add("Color", typeof(System.Drawing.Color));
+	        
+	        DataRow r = dt.NewRow();
+	        r["EventTitle"] = "Today's Event";
+	        r["EventDay"] = System.DateTime.Today;
+	        r["Color"] = System.Drawing.Color.Black;
+	        dt.Rows.Add(r);
+	
+	        r = dt.NewRow();
+	        r["EventTitle"] = "Tomorrow's Event";
+	        r["EventDay"] = System.DateTime.Today.AddDays(1);
+	        r["Color"] = System.Drawing.Color.Red;
+	        dt.Rows.Add(r);
+	
+	        r = dt.NewRow();
+	        r["EventTitle"] = "Tomorrow's Event #2";
+	        r["EventDay"] = System.DateTime.Today.AddDays(1);
+	        r["Color"] = System.Drawing.Color.Blue;
+	        dt.Rows.Add(r);
+	
+	        r = dt.NewRow();
+	        r["EventTitle"] = "Next Week's Event";
+	        r["EventDay"] = System.DateTime.Today.AddDays(7);
+	        r["Color"] = System.Drawing.Color.Green;
+	        dt.Rows.Add(r);
+	
+	        return dt;
+    }
+
+	
+	
+
+	
+</script>
+
+
+<head>
+<title>Item Template Tester</title>
+</head>
+<body>
+
+<form id="theForm" runat="server">
+
+<asp:Panel ID="pnlCal" runat="server">
+
+<ASP:DATAGRID id="dgTest" RUNAT="server" CssClass="Normal" BORDERWIDTH="0"
+WIDTH="100%" AUTOGENERATECOLUMNS="False"
+				ALLOWSORTING="True" CELLPADDING="0" CELLSPACING="0">
+	<COLUMNS>
+
+		<ASP:TEMPLATECOLUMN ITEMSTYLE-HORIZONTALALIGN="Center">
+			<ITEMTEMPLATE>
+				<%# DataBinder.Eval(Container.DataItem,"EventTitle") %>
+			</ITEMTEMPLATE>
+
+		</ASP:TEMPLATECOLUMN>
+	</COLUMNS>
+
+	<HEADERSTYLE BACKCOLOR="#D4D0C8" FORECOLOR="#000000"></HEADERSTYLE>
+</ASP:DATAGRID>
+
+
+</asp:Panel>
+
+
+</form>
+</body>
+</html>


More information about the mono-bugs mailing list