protected void btn_buystone_Click(object sender, EventArgs e) { BookInfo b = new BookInfo(); b = Bll_BookInfo.GetBook("Harry Potter and the Philosopher's Stone"); Session["BookName"] = b.BookName; Session["BookID"] = b.BookID; Response.Redirect("Order/Order.aspx?BookID=" + b.BookID + ""); }
protected void btn_azkaban_Click(object sender, EventArgs e) { BookInfo b = new BookInfo(); b = Bll_BookInfo.GetBook("Harry Potter and the Prisoner of Azkaban"); Session["BookName"] = b.BookName; Session["BookID"] = b.BookID; Response.Redirect("Order/Order.aspx?xx=" + b.BookID + ""); }
protected void btn_fire_Click(object sender, EventArgs e) { BookInfo b = new BookInfo(); b = Bll_BookInfo.GetBook("Harry Potter and the Goblet of Fire"); Session["BookName"] = b.BookName; Session["BookID"] = b.BookID; Response.Redirect("Order/Order.aspx?xx=" + b.BookID + ""); }
protected void btn_buysecrets_Click(object sender, EventArgs e) { BookInfo b = new BookInfo(); b = Bll_BookInfo.GetBook("Harry Potter and the Chamber of Secrets"); Session["BookName"] = b.BookName; Session["BookID"] = b.BookID; Response.Redirect("Order/Order.aspx?xx=" + b.BookID + ""); }
protected void Page_Load(object sender, EventArgs e) { book = Bll_BookInfo.GetBook(Session["BookName"].ToString()); lb_price.Text = book.BookPrice; lb_num.Text = "1"; lb_allprice.Text = lb_price.Text; lb_ppprice.Text = lb_price.Text; lb_truepay.Text = lb_ppprice.Text; linkbtn.Text = book.BookName; }