internal static DataTable SqlDataSource_to_Datatable(SqlDataSource sds)
{
DataTable dt = new DataTable();
try
{
DataView dv = new DataView();
dv = (DataView)sds.Select(DataSourceSelectArguments.Empty);
dt = dv.ToTable();
}
catch (Exception ex)
{
var s = ex.Message;
return new DataTable("bos");
}
return dt;
}
{
DataTable dt = new DataTable();
try
{
DataView dv = new DataView();
dv = (DataView)sds.Select(DataSourceSelectArguments.Empty);
dt = dv.ToTable();
}
catch (Exception ex)
{
var s = ex.Message;
return new DataTable("bos");
}
return dt;
}
Yorumlar
Yorum Gönder