<asp:SqlDataSource ID="SqlDataSource1" runat="server" DataSourceMode="DataSet"From the code-behind you can get at the data using code like this:
using System.Collections; // Inside of a method... IEnumerable items = this.SqlDataSource1.Select(DataSourceSelectArguments.Empty); // To get the DataSet DataSet ds = items.Table.DataSet; // To get at a DataTable DataTable table = items.Table;