How to upload file on server?

By James J

Save user file on server...

//If FileUpLoad Control has file then only save file...

if (FileUpLoad1.HasFile)
{  
   FileUpLoad1.
SaveAs(Server.MapPath("Upload_Folder")+ "\\" + FileUpLoad1.FileName);
}

How to upload file on server?  (633 Views)