title: File upload button not showing files when uploaded
body: <p>I have a modal popup and in the modal-body I have two asp.net controls <code>FileUpload</code> control and <code>LinkButton</code> and the markup is</p>
  
  <pre><code>&lt;div class="modal-body"&gt;    
      &lt;asp:FileUpload runat="server" ID="optinFileUpload"&gt;&lt;/asp:FileUpload&gt;
      &lt;asp:LinkButton ID="btnImport" runat="server" class="btn btn-primary btn-block" OnClick="btnImport_Click" Text="Import"&gt;&lt;/asp:LinkButton&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Then I'm uploading the button and click the Import button and code behind is</p>
  
  <pre><code>protected void btnImport_Click(object sender, EventArgs e)
  {
      bool val = optinFileUpload.HasFile;
  }
  </code></pre>
  
  <p>And the val is always showing <code>false</code> even if it contains the file.</p>
  
  <p>Can one tell me why it is always showing false</p>