protected void Button1_Click(object sender, EventArgs e)
        {

            string imgurl = thefilePath;
            string title = booknameLable.Text;
            float price = int.Parse(TextBox6.Text) + int.Parse(TextBox7.Text)/(float)100;
            string author = authorLable.Text;
            string publisher = publisherLable.Text;
            string isbn = isbnLabel.Text;
            string info = TextBox5.Text;
            bool shelf = RadioButton1.Checked;
            int typeid = int.Parse(DropDownList1.SelectedValue);
            int amount = int.Parse(TextBox8.Text);
            bookBLL bb = new bookBLL();
            int sellerID = Convert.ToInt32(Session["userid"]);
            int result = bb.insertBook(sellerID, typeid, title, author, publisher, isbn, info, price, amount,
                shelf, imgurl);
            if (result == 1)
                Response.Redirect("~/Seller/Booklist.aspx?id=" + sellerID.ToString());
            else
            {
                lblMessage.Text = "添加书本失败";
                UpdatePanel1.Update(); 
            }
        }