Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Participant
942 Points
234 Posts
Apr 30, 2012 08:31 PM|LINK
if (FileUpload1.HasFile) { try { FileUpload1.SaveAs(Server.MapPath("\\\\Server\\data\\Files\\" + FileUpload1.FileName)); } catch (Exception ex) { } } else { //Label1.Text = "You have not specified a file." }
webguy07
Participant
942 Points
234 Posts
Re: FileUpload1.SaveAs does not work correctly?
Apr 30, 2012 08:31 PM|LINK
if (FileUpload1.HasFile) { try { FileUpload1.SaveAs(Server.MapPath("\\\\Server\\data\\Files\\" + FileUpload1.FileName)); } catch (Exception ex) { } } else { //Label1.Text = "You have not specified a file." }