Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            BookInfoManager biManager = new BookInfoManager();

            this.Repeater1.DataSource = biManager.GetIndex(10);
            this.Repeater1.DataBind();
        }
Example #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            BookInfoManager biManager = new BookInfoManager();

            this.rptBookList.DataSource = biManager.GetSearch(new BookInfo()
            {
            });
            this.rptBookList.DataBind();
        }
Example #3
0
        public static bool UpBookInfo(string jsonStr)
        {
            BookInfo             bi = null;
            JavaScriptSerializer js = new JavaScriptSerializer();

            bi = js.Deserialize <BookInfo>(jsonStr); //BookInfo bi = null;
                                                     //bi.Book_Case.bookcaseID.ToString()
                                                     //
            return(bi != null?BookInfoManager.UpbookInfo(bi) : false);
        }
Example #4
0
        public static bool AddBookInfo(string jsonStr)
        {
            BookInfo bi = null;

            try
            {
                JavaScriptSerializer js = new JavaScriptSerializer();
                bi = js.Deserialize <BookInfo>(jsonStr);
                return(bi != null?BookInfoManager.AddbookInfo(bi) : false);
            }
            catch (Exception)
            {
                return(false);
            }
        }