title: Grab File Upload ASP Object Textbox Text with jQuery
body: <p>I have a webform that has an ASP file upload object and I want to use jQuery to grab the file they have selected and upload the file via AJAX.</p>
  
  <p>However I am having problems grabbing the file name after it's been selected.</p>
  
  <p>Here is the HTML/ASP Code:</p>
  
  <pre><code> &lt;asp:FileUpload runat="server" ID="NewPic" /&gt;
     &lt;asp:RequiredFieldValidator ID="RequiredFieldValidator1" ControlToValidate="NewPic" runat="server" Display="Dynamic" Text="You need to pick a picture." CssClass="mandatory"&gt;&lt;/asp:RequiredFieldValidator&gt;
  </code></pre>
  
  <p>This is what I have tried but doesn't seem to work</p>
  
  <pre><code>uploadText = $('input[type=file]').value;
  alert('FileName: ' + uploadText);
  </code></pre>