title: Pass FileUpload.PostedFile as parameter (server side method)
body: <p>I'm quite new to the asp.net world, so I would appreciate any help or different solutions.</p>
  
  <p>Does anybody know of a way to pass the PostedFile (HttpPostedFile) of a FileUpload via javascript/jquery to a server side method?</p>
  
  <p>Client-side?
  //how do I pass the FileUpload.PostedFile?</p>
  
  <p>codebehind:</p>
  
  <pre><code>[System.Web.Services.WebMethod]
  public static void SaveMyFile(HttpPostedFile myFile)
  {
  // code to save file here
  }
  </code></pre>
  
  <p>NOTE: I don't want to make use of plugins or any other thirdparty controls.</p>