protected void Page_Load(object sender, EventArgs e) { BookInfoManager biManager = new BookInfoManager(); this.Repeater1.DataSource = biManager.GetIndex(10); this.Repeater1.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { BookInfoManager biManager = new BookInfoManager(); this.rptBookList.DataSource = biManager.GetSearch(new BookInfo() { }); this.rptBookList.DataBind(); }
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); }
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); } }