[Mono-bugs] [Bug 74288][Nor] New - DataGrid's Caption property not implemented.

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 31 Mar 2005 17:14:30 -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 morpheus4you@gmail.com.

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

--- shadow/74288	2005-03-31 17:14:30.000000000 -0500
+++ shadow/74288.tmp.26940	2005-03-31 17:14:30.000000000 -0500
@@ -0,0 +1,82 @@
+Bug#: 74288
+Product: Mono: Class Libraries
+Version: 1.1
+OS: All
+OS Details: Tested on Fedora Core 2, but probably not OS specific.
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: morpheus4you@gmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: DataGrid's Caption property not implemented.
+
+Description of Problem:
+When setting the Caption property of an ASP.NET DataGrid the runtime 
+
+Steps to reproduce the problem:
+1. Create a example ASP.NET webproject with a simple page with a DataGrid
+component in it. 
+2. Create a button which tries to set the DataGrid's Caption
+(dataGrid1.Caption = "Hello world";) with some string value. 
+3. Compile & run the application on Windows and see that setting the
+DataGrid's caption works.
+5. Deploy the project to a Mono enabled environment.
+6. Call the page and check the error thrown by Apache and/or XSP.
+ 
+OR
+
+To see the same effect on monoforge.com (a Mono hosting provider) check out
+http://morpheus4you.monoforge.com/DataGridCaption/WebForm1.aspx
+First click button 1 to fill the datagrid, this should work. When clicking
+button 2, an Internal Server Error should be thrown. The relevant sources
+can be seen at the next urls:
+http://morpheus4you.monoforge.com/DataGridCaption/WebForm1.aspx.txt
+http://morpheus4you.monoforge.com/DataGridCaption/WebForm1.aspx.cs.txt
+http://morpheus4you.monoforge.com/DataGridCaption/Web.config.txt
+
+Actual Results:
+(these errors can be seen when running XSP from the command line)
+<code>** (/usr/lib/mono/1.0/xsp.exe:24080): WARNING **: Missing method
+set_Caption in assembly /home/www/mono/bin/DataGridCaption.dll, type
+BaseDataList
+System.NullReferenceException: Object reference not set to an instance of
+an object
+in <0x00000> <unknown method>
+in <0x00000> <unknown method>
+in (wrapper xdomain-dispatch) Mono.ASPNET.XSPApplicationHost:ProcessRequest
+(object,byte[]&,byte[]&,int,long,int,long,int,string,string,string,string,byte[],string)
+in (wrapper xdomain-invoke) Mono.ASPNET.XSPApplicationHost:ProcessRequest
+(int,long,int,long,int,string,string,string,string,byte[],string)
+in (wrapper remoting-invoke-with-check)
+Mono.ASPNET.XSPApplicationHost:ProcessRequest
+(int,long,int,long,int,string,string,string,string,byte[],string)
+in <0x0047b> Mono.ASPNET.XSPWorker:Run (System.Object state)
+</code>
+
+Expected Results:
+The caption should have been set with the specified string and no error
+should have been thrown.
+
+How often does this happen? 
+Always
+
+Additional Information:
+Tested on
+-Mono JIT compiler version 1.1.4.20050311
+-xsp.exe version 1.0.6.99
+
+When compiling with mcs (version 1.1.4.0) the next error is shown:
+<code>WebForm1.aspx.cs(51) error CS0117:
+`System.Web.UI.WebControls.DataGrid' does not contain a definition for
+`Caption'
+Compilation failed: 1 error(s), 0 warnings
+</code>
+
+Looks like the property System.Web.UI.WebControls.DataGrid.Caption was not
+  implemented (yet) within the System.Web class.