protected void btnOK_Click(object sender, System.EventArgs e)
        {
            ST_BookBiz.ST_Product st_product = new STGROUP.ST_BookBiz.ST_Product();

            st_entity.ST_ProductName = txtName.Text;
            st_entity.ST_Price = float.Parse(txtPrice.Text.Trim());
            st_entity.ST_SoldPrice = float.Parse(txtSoldPrice.Text.Trim());
            st_entity.ST_Publisher = txtPublisher.Text.Trim();
            st_entity.ST_ISBN = txtISBN.Text.Trim();
            st_entity.ST_Page = int.Parse(txtPage.Text.Trim());
            st_entity.ST_PublishDate = DateTime.Parse(txtPublishDate.Text.Trim());
            st_entity.ST_ClassID = int.Parse(Request.QueryString["st_classid"]);
            st_entity.ST_Author = txtAuthor.Text.Trim();

            if(Request["Action"]=="add")//�����Ʒ
            {
                st_entity.ST_IsSelling = true;
                st_entity.ST_ProductID = st_product.InsertProduct(st_entity);
                if (txtFile.PostedFile.ContentLength > 0)
                {
                    txtFile.PostedFile.SaveAs(ST_BookBiz.ST_Utility.ST_ImagePhyPath + st_entity.ST_ProductID + ".jpg");

                }
                st_product.UpdateProductImg(st_entity.ST_ProductID + ".jpg", st_entity.ST_ProductID);

            }
            else//������Ʒ
            {
                st_entity.ST_ProductID = int.Parse(Request["id"]);
                st_entity.ST_Image = st_entity.ST_ProductID + ".jpg";
                if (txtFile.PostedFile.ContentLength > 0)
                {
                    txtFile.PostedFile.SaveAs(ST_BookBiz.ST_Utility.ST_ImagePhyPath + st_entity.ST_ProductID + ".jpg");

                }
                st_product.UpdateProduct(st_entity);
            }

            string str = "<script language='javascript'>alert('���³ɹ�');window.close();</script>";
            Response.Write(str);
        }