title: Getting File from <input type ="file"> in C#.net
body: <p>i need to get the filename from  my input id is Announcement_PIC, but it always return null when i try to get the filename. below is my code:</p>
  
  <p>Front side:</p>
  
  <pre><code>&lt;input type="file" runat="server" class="textboxTabsFiles" ID="Announcement_PIC"/&gt;
  </code></pre>
  
  <p>Backend:
  i've already included the below in the partical class:</p>
  
  <pre><code>protected System.Web.UI.HtmlControls.HtmlInputFile File1;
  protected System.Web.UI.HtmlControls.HtmlInputButton Submit1;
  </code></pre>
  
  <p>This is how i'm currently getting my filename</p>
  
  <pre><code>string fn = System.IO.Path.GetFileName(Announcement_PIC.PostedFile.FileName).ToString();
  </code></pre>
  
  <p>Edit: my file upload is placed inside a JQuery tabs and using the asp fileupload it also has problem getting the file name, thus i tried using input file</p>