[Mono-bugs] [Bug 48212][Wis] New - Compiler fails when using "Font-Names" attribute

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Sun, 7 Sep 2003 21:22:53 -0400 (EDT)


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 cmello@gmx.net.

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

--- shadow/48212	2003-09-07 21:22:53.000000000 -0400
+++ shadow/48212.tmp.18889	2003-09-07 21:22:53.000000000 -0400
@@ -0,0 +1,53 @@
+Bug#: 48212
+Product: Mono/Class Libraries
+Version: unspecified
+OS: 
+OS Details: Mandrake 9.1
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Wishlist
+Component: System.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: cmello@gmx.net               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Compiler fails when using "Font-Names" attribute
+
+Description of Problem:
+
+When using the "Font-Names" attribute in a DataGrid control, the compiler
+fails with the output attached. For example, edit the web_datagrid.aspx and
+add the attribute to the DataGrid:
+
+ <asp:datagrid id="dg" Font-Names="Verdana" border="1" ...
+
+This is the error shown:
+
+Description: Error compiling a resource required to service this request.
+Review your source file and modify it to fix this error.
+
+Error message: /tmp/tmp1fb70585.cs(145,0) : error CS0029: Cannot convert
+implicitly from `string' to `string[]'
+(0,0) : error failed: 1 error(s), 0 warnings
+
+File name: /home/cesar/code/cvsroot/mono/xsp/server/test/web_datagrid.aspx
+
+Source File: /tmp/tmp1fb70585.cs 
+
+ private System.Web.UI.Control __BuildControl_dg() {
+Line 139:             System.Web.UI.WebControls.DataGrid __ctrl;
+Line 140:             __ctrl = new System.Web.UI.WebControls.DataGrid();
+Line 141:             this.dg = __ctrl;
+Line 142:             __ctrl.ID = "dg";
+Line 143:             __ctrl.AutoGenerateColumns = false;
+Line 144:             __ctrl.Font.Names = new System.String[][] {
+Line 145:                 "Verdana"};
+Line 146:            
+((System.Web.UI.IAttributeAccessor)(__ctrl)).SetAttribute("border", "1");
+Line 147:             __ctrl.EnableViewState = false;
+Line 148:             this.__BuildControl__bctrl_8(__ctrl.Columns);
+Line 149:             return __ctrl;
+Line 150:         }