[Mono-list] Problem with paging with bound ASP.NET datagrid under
mono
William Wise
will at digitalelite.com
Mon Oct 10 21:32:55 EDT 2005
Hi Folks,
I'm having a problem with code that runs fine under .NET on Windows but
fails under Mono-1.1.9.2 on Suse 9.3.
The problem involves a datatable bound to a ASP.NET datagrid control.
Generally, the code works fine until I try to page to a different
portion of the data. At this point the following error results under Linux.
Any help would be much appreciated. Please let me know if posting the
.aspx or aspx.cs (code-behind) code would be helpful.
Kind Regards,
Will
Server error in '/' application
------------------------------------------------------------------------
*Description: *Error processing request.
*Error Message: *HTTP 500.
*Stack Trace: * ||
System.IndexOutOfRangeException: Array index is out of range.
in [0x0002a] System.Data.DataView:get_Item (Int32 recordIndex)
in [0x00002] (at /tmp/scratch/BUILD/mono-1.1.9.2/mcs/class/System.Data/System.Data/DataView.cs:858) System.Data.DataView:System.Collections.IList.get_Item (Int32 recordIndex)
in <0x00096> System.Web.UI.WebControls.PagedDataSource+<GetListEnum>__3:MoveNext ()
in [0x00241] (at /tmp/scratch/BUILD/mono-1.1.9.2/mcs/class/System.Web/System.Web.UI.WebControls/DataGrid.cs:924) System.Web.UI.WebControls.DataGrid:CreateControlHierarchy (Boolean useDataSource)
in [0x00045] (at /tmp/scratch/BUILD/mono-1.1.9.2/mcs/class/System.Web/System.Web.UI.WebControls/BaseDataList.cs:361) System.Web.UI.WebControls.BaseDataList:DataBind ()
in [0x00269] (at /home/willwise/wwwroot/results.aspx.cs:191) pbb.results:BindMyDataGrid ()
in [0x00012] (at /home/willwise/wwwroot/results.aspx.cs:114) pbb.results:dgResults_Page (System.Object Sender, System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_DataGridPageChangedEventArgs (object,System.Web.UI.WebControls.DataGridPageChangedEventArgs)
in [0x0001f] (at /tmp/scratch/BUILD/mono-1.1.9.2/mcs/class/System.Web/System.Web.UI.WebControls/DataGrid.cs:1136) System.Web.UI.WebControls.DataGrid:OnPageIndexChanged (System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
in [0x00174] (at /tmp/scratch/BUILD/mono-1.1.9.2/mcs/class/System.Web/System.Web.UI.WebControls/DataGrid.cs:1086) System.Web.UI.WebControls.DataGrid:OnBubbleEvent (System.Object source, System.EventArgs e)
in [0x00073] (at /tmp/scratch/BUILD/mono-1.1.9.2/mcs/class/System.Web/System.Web.UI/Control.cs:891) System.Web.UI.Control:RaiseBubbleEvent (System.Object source, System.EventArgs args)
in [0x0001a] (at /tmp/scratch/BUILD/mono-1.1.9.2/mcs/class/System.Web/System.Web.UI.WebControls/DataGridItem.cs:82) System.Web.UI.WebControls.DataGridItem:OnBubbleEvent (System.Object source, System.EventArgs args)
in [0x00073] (at /tmp/scratch/BUILD/mono-1.1.9.2/mcs/class/System.Web/System.Web.UI/Control.cs:891) System.Web.UI.Control:RaiseBubbleEvent (System.Object source, System.EventArgs args)
in [0x00027] (at /tmp/scratch/BUILD/mono-1.1.9.2/mcs/class/System.Web/System.Web.UI.WebControls/LinkButton.cs:278) System.Web.UI.WebControls.LinkButton:OnCommand (System.Web.UI.WebControls.CommandEventArgs e)
in [0x00033] (at /tmp/scratch/BUILD/mono-1.1.9.2/mcs/class/System.Web/System.Web.UI.WebControls/LinkButton.cs:93) System.Web.UI.WebControls.LinkButton:System.Web.UI.IPostBackEventHandler.RaisePostBackEvent (System.String ea)
in [0x00002] (at /tmp/scratch/BUILD/mono-1.1.9.2/mcs/class/System.Web/System.Web.UI/Page.cs:1065) System.Web.UI.Page:RaisePostBackEvent (IPostBackEventHandler sourceControl, System.String eventArgument)
in [0x00071] (at /tmp/scratch/BUILD/mono-1.1.9.2/mcs/class/System.Web/System.Web.UI/Page.cs:1048) System.Web.UI.Page:RaisePostBackEvents ()
in [0x00144] (at /tmp/scratch/BUILD/mono-1.1.9.2/mcs/class/System.Web/System.Web.UI/Page.cs:969) System.Web.UI.Page:InternalProcessRequest ()
in [0x00052] (at /tmp/scratch/BUILD/mono-1.1.9.2/mcs/class/System.Web/System.Web.UI/Page.cs:899) System.Web.UI.Page:ProcessRequest (System.Web.HttpContext context)
in <0x01098> System.Web.HttpApplication+<Pipeline>__1:MoveNext ()
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20051010/18faeeeb/attachment.html
More information about the Mono-list
mailing list