file upload asp.net c# code example
Example 1: c# fileupload example
String savePath = @"c:\temp\uploads\";
if (FileUpload1.HasFile) {
String fileName = FileUpload1.FileName;
savePath += fileName;
FileUpload1.SaveAs(savePath);
}
Example 2: file upload in asp.net c# mvc example
public HttpPostedFile ImageFile { get; set; }