just use code as below
SqlConnection cnn = new SqlConnection();
cnn.ConnectionString = System.Configuration.ConfigurationManager.ConnectionStrings["sqlconnection"].ConnectionString;
SqlDataAdapter da = new SqlDataAdapter("select * from Registration",cnn);
DataSet ds = new DataSet();
da.Fill(ds, "Registration");
Thanks,
-RG