Forums - C# Corner

Forum guidelines
Shubham Agrawal

Shubham Agrawal

  • 1.6k
  • 89
  • 1.4k

File Upload Control

Sep 21 2017 2:06 AM
I am using File upload control in asp.net but i dont select any File so i face Error...
 
string str = FileUpload1.FileName;
FileUpload1.PostedFile.SaveAs(Server.MapPath("~/Upload/" + str));
string Image = "~/Upload/" + str.ToString();
}
 
 

Answers (2)

X

Build smarter apps with Machine Learning, Bots, Cognitive Services - Start free.

Start Learning Now