string savePath = MapPath("~/.../AttachmentTIS/" + ... + fileUpload.FileName); if (fileUpload.HasFile) { fileUpload.SaveAs(savePath); }
private void StartUpLoad() { string fname = ".pdf"; string chepar = TextBox1.Text + fname; //TextBox1.Text is the file name string pdfPath = "PDFFOLDER/" + chepar; string punta = "~/" + pdfPath; FileUpload1.SaveAs(Server.MapPath(pdfPath)); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)