protected void btnUploadImage_Click(object sender, EventArgs e) { string filepath = null; if (fileUploadImage.HasFile) { filepath = Path.GetFileName(fileUploadImage.PostedFile.FileName); string fileFullpath = Server.MapPath("../../Content/ProductImage/") + filepath; fileUploadImage.SaveAs(fileFullpath); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)