title: asp.net FileUpload event after choice is made and before submit for upload
body: <p>I would like to display the size of the file that was chosen via the Browse button of the FileUpload control. </p>
  
  <p>Ideally, this value is displayed immediately after the user chooses the file but BEFORE the "Upload File" Button is clicked. </p>
  
  <p>I have  and  on a webform. The Button looks like this:</p>
  
  <pre><code>&lt;asp:Button ID="UploadButton" runat="server" onclick="UploadButton_Click" Text="Upload File"/&gt;         
  </code></pre>
  
  <p>The onclick event for the button control results in a postback and the file is uploaded. </p>
  
  <p>I know how to get the size of the file but not before the Upload File button is clicked and a postback occurs. </p>
  
  <p>Is there an event associated with the FileUpload web control that could submit the form (i.e. postback) without the clicking of the button? </p>
  
  <p>The whole intent is that I want to give the user a feel for how long the upload might take...set a different expection for a 10mb file than for a 2kb file, etc.). </p>