c# fileupload example

C#
String savePath = @"c:\temp\uploads\";
if (FileUpload1.HasFile) {
  String fileName = FileUpload1.FileName;
  savePath += fileName;
  FileUpload1.SaveAs(savePath);
}
Source

Also in C#: