protected String UploadFolderPath = "~/Images/"; protected void AsyncFileUpload1_UploadedComplete(object sender, AjaxControlToolkit.AsyncFileUploadEventArgs e) { String filename = System.IO.Path.GetFileName(AsyncFileUpload1.FileName); AsyncFileUpload1.SaveAs(Server.MapPath(this.UploadFolderPath) + filename); } protected void Button1_Click(object sender, EventArgs e) { String productName = this.TextBox1.Text; string productDesc = this.TextBox2.Text; String pCategoryIDs = this.TextBox3.Text; int pCategoryID = Convert.ToInt32(pCategoryIDs); String prodPrice = this.TextBox4.Text; double productPrice = Convert.ToDouble(prodPrice); String stockQty = this.TextBox5.Text; int stockQuantity = Convert.ToInt32(stockQty); BQ_BLL insertprod = new BQ_BLL(); insertprod.InsertProduct(productName, productDesc, filename, pCategoryID, productPrice, stockQuantity); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)