Click here to Skip to main content
15,903,030 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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; 
            }

        }
Posted
Updated 24-Jun-13 0:37am
v2
Comments
[no name] 24-Jun-13 6:03am    
You need to get a book on basic C# programming and go through it as that is clearly not a class definition.

 
Share this answer
 
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900