ZAIN ULARIFEEN

ZAIN ULARIFEEN

  • 1.6k
  • 143
  • 150.5k

how to use the following class for the insertion,data retrie

Jun 24 2013 6:00 AM
 

public DataSet GetData(string Query)

{

try

{

if (ds.Tables.Count > 0)

{

ds.Tables.Clear();

}

SqlDataAdapter adp = new SqlDataAdapter(Query, con);

adp.Fill(ds,

"s");

return ds;

}

catch (Exception)

{

throw;

return ds;

}

}


Answers (2)