Connected Procedure : -
SqlConnection con = new SqlConnection("Pass the Connection String here");
SqlCommand com = new SqlCommand("select * from table3", con);
con.Open();
SqlDataReader dr = com.ExecuteReader();
GridView1.DataSource = dr;
GridView1.DataBind();
con.Close();
No comments:
Post a Comment