if (FileUploader.HasFile) try { FileUploader.SaveAs(Server.MapPath("confirm//") + FileUploader.FileName); Label1.Text = "File name: " + FileUploader.PostedFile.FileName + "<br>" + FileUploader.PostedFile.ContentLength + " kb<br>" + "<br><b>Uploaded Successfully"; } catch (Exception ex) { Label1.Text = "ERROR: " + ex.Message.ToString(); Label1.Visible = true; } else { Label1.Text = "You have not specified a file."; Label1.Visible = true; }
string filename = Path.GetFileName(this.upload.FileName);
upload.SaveAs(Server.MapPath("~/IMEINO/") + filename);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)