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; } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)