Is there a way to upload a default file from the client side without having to use the browse button in the file upload control? For example, I want to upload a specific file every time I click a button, without showing the file dialog. Can this be achieved using the fileupload control or any other methods?
if (FileUpload1.HasFile)
{
filename = Path.GetFileName(FileUpload1.FileName);
//string BackupPath;
ServerPath = @"D:\Iss\Integration\GC1\Backup\" + filename;
FileUpload1.SaveAs(ServerPath);
}