string settings = Convert.ToString(ConfigurationManager.ConnectionStrings["ShoppingConnectionString"]);
SqlConnection myconn = new SqlConnection(settings);
myconn.Open();
SqlCommand mycmd = new SqlCommand("bookcategory2", myconn);
mycmd.CommandType = CommandType.StoredProcedure;
SqlDataReader result = mycmd.ExecuteReader(CommandBehavior.CloseConnection);
ProductView.DataSource = result;
ProductView.DataBind();
SqlConnection myconn = new SqlConnection(settings);
myconn.Open();
SqlCommand mycmd = new SqlCommand("bookcategory2", myconn);
mycmd.CommandType = CommandType.StoredProcedure;
SqlDataReader result = mycmd.ExecuteReader(CommandBehavior.CloseConnection);
ProductView.DataSource = result;
ProductView.DataBind();

浙公网安备 33010602011771号