[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.


--- 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   
+Priority: Normal
+Component: Sys.Web
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: morpheus4you@gmail.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+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.
+To see the same effect on monoforge.com (a Mono hosting provider) check out
+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:
+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
+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
+in (wrapper xdomain-invoke) Mono.ASPNET.XSPApplicationHost:ProcessRequest
+in (wrapper remoting-invoke-with-check)
+in <0x0047b> Mono.ASPNET.XSPWorker:Run (System.Object state)
+Expected Results:
+The caption should have been set with the specified string and no error
+should have been thrown.
+How often does this happen? 
+Additional Information:
+Tested on
+-Mono JIT compiler version
+-xsp.exe version
+When compiling with mcs (version the next error is shown:
+<code>WebForm1.aspx.cs(51) error CS0117:
+`System.Web.UI.WebControls.DataGrid' does not contain a definition for
+Compilation failed: 1 error(s), 0 warnings
+Looks like the property System.Web.UI.WebControls.DataGrid.Caption was not
+  implemented (yet) within the System.Web class.