Upload File/Image in asp.net

By j Miracle

Here i will show how you can upload file/image in asp.net using c#

Take on fileupload control.

And one button to upload.



On button click event write this:



      string path = Server.MapPath("~/") + FileUpload1.PostedFile.FileName.ToString();
      FileUpload1.SaveAs(path);




It will save the images in root drive.

Upload File/Image in asp.net  (2205 Views)