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();
posted on 2008-04-17 03:39  学习林  阅读(305)  评论(0)    收藏  举报