title: Upload file to ASP.Net Server without using FileUpload Control
body: <p>In my ASP.Net website I want to upload a file onClickEvent of LinkButton. I dont have a space to show a FileUpload Control. But if we use fileUpload control it is easy to upload a file using:</p>
  
  <pre><code>String filename = Path.GetFileName(FileUpload1.FileName);
  FileUpload1.SaveAs(Server.MapPath("~/files/") + filename);
  </code></pre>
  
  <p>How do I open file browser on onClick event of LinkButton and save my file inside the <strong>Files</strong> folder present on the server?</p>
  
  <p><strong>EDIT:</strong><br>
  can we use "OpenFileDialog" From Windows.Forms? If yes, how? i am just asking...</p>