Forums - C# Corner

Forum guidelines
Shubham Agrawal

Shubham Agrawal

  • 1.5k
  • 18
  • 463

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)