Sanjeev Singh
Which method do you invoke on the DataAdapter control to load your generated dataset with data?
By Sanjeev Singh in ASP.NET on Mar 03 2009
  • P Narasimha
    Mar, 2009 7

    DataAdapter: DataAdapter is Nothing but It is Bridge B/w the dataset and Database.
    Befor going to dataadapter we need to follwing ;
    1)Establish the Connection to database
    2)Open Connection by Using Open method.
    3)Fill the Dataadapetr.
    Dataadpter load Genereated datd from Dataset Bu Using Fill() Method.
    Ex:
    Dataset ds = new Dataset();
    datataadpter da = new Dataadapter("Select Query",Con);
    da.Fill("Tablename",ds);
    da.Fill(ds);//like

    • 0
  • Usama Mosaad
    Mar, 2009 4

    To load data in your dataset or datatable, you use "Fill" method which has different overloads such as:

    Fill(DataSet dsObject)    &&     Fill(DataTable dtObject)

    Example:

    SqlDataAdapter _adapter = new SqlDataAdapter();

    DataSet ds = new DataSet();

    //DataTable dt = new DataTable(); 

    _adapter.Fill(ds);

    //_adapter.Fill(dt);

    • 0
  • Usama Mosaad
    Mar, 2009 4

    To load data in your dataset or datatable, you use "Fill" method which has different overrides such as:

    Fille(DataSet dsObject)    &&     Fill(DataTable dtObject)

    Example:

    SqlDataAdapter _adapter = new SqlDataAdapter();

    DataSet ds = new DataSet();

    //DataTable dt = new DataTable(); 

    _adapter.Fill(ds);

    //_adapter.Fill(dt);

     

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS