Follow by Email

Friday, 10 August 2012

Convert recordset to dataset in asp.net

We must add this below Namespace for getting OleDbDataAdapter class:

using System.Data.OleDb;

private void fill_Shipping()
{
OleDbDataAdapter Oda = new OleDbDataAdapter();
DataSet ds = new DataSet();
Oda.Fill(ds, rsShippingAddr, "MyTable");
DataList1.DataSource = ds;
DataList1.DataBind();
}

0 comments:

Post a Comment


                                                            

 
Design by Abhinav Ranjan Sinha