[Mono-dev] [patch] System.Web.UI.WebControls/SqlDataSourceView.cs

Andrew Skiba andrews at mainsoft.com
Thu Sep 7 03:50:15 EDT 2006


Hello,

Please review the attached patch for SqlDataSourceView.ExecuteSelect. A
standalone test aspx is attached as well. It proves that in .Net
ExecuteSelect returns DataView and not DataTableReader. This is
important for implementing paging abilities for GridView. The test also
demonstrates that only the first table is used when there are few tables
in result. I did not run the test on mono, it was written to check what
happens on .Net.

In my fix, I changed the behavior for DataSourceMode == DataSet.
According to MSDN, this mode is used when paging capabilities are
necessary. .Net returns only the first table when the select returns
more than one table, so did I. I did not check what happens when there
are no tables (is that possible?), so I left the behavior untouched.

Thank you.
Andrew.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SqlDataSourceView.patch
Type: application/octet-stream
Size: 496 bytes
Desc: SqlDataSourceView.patch
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060907/585596f3/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Default.aspx
Type: application/octet-stream
Size: 3754 bytes
Desc: Default.aspx
Url : http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060907/585596f3/attachment-0001.obj 


More information about the Mono-devel-list mailing list