예제 #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            int      bookId = Convert.ToInt32(Request["bookId"]);
            BooksBll BBll   = new BooksBll();

            model = BBll.GetModel(bookId);
            CategoriesBll CBll = new CategoriesBll();

            list   = CBll.GetModelList("");
            listPB = PBll.GetModelList("");
        }
예제 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            typeList = c.GetModelList("");

            DataSet ds = book.TodayTuiJian();

            //今日推荐
            tuijianlist = book.DataTableToList(ds.Tables[0]);

            //热门活动
            DataSet ds1 = book.GetBooksByRandom(4);

            hotList = book.DataTableToList(ds1.Tables[0]);
        }