DataView dv = (DataView)SqlDataSource1.Select(DataSourceSelectArguments.Empty);
int reorderedProducts = (int)dv.Table.Rows[0][0];
方法2:
DataView dv = (DataView)SqlDataSource1.Select(DataSourceSelectArguments.Empty);
DataTable dt = dv.ToTable();
foreach (DataRow i in dt.Rows)
{
Response.Write(i["欄位名"].ToString());
}
方法3:SqlDataSource.Select 方法 (System.Web.UI.WebControls)
JHPeng's Blog:宏觀篇。: SqlDataSource抓全部資料