FileName of fileupload is empty after a partial postback of an updatepanel?
<p>I have a FileUpload in the Updatepanel.</p>

<pre><code>&lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always"&gt;
&lt;Triggers&gt;
    &lt;asp:PostBackTrigger ControlID="SaveButton" /&gt;
&lt;/Triggers&gt;
&lt;ContentTemplate&gt;
&lt;cc1:TabContainer CssClass="visoft__tab_xpie7" runat="server" ID="tab" ActiveTabIndex="0" Width="100%" Font-Size="11px"&gt;
 &lt;cc1:TabPanel runat="server" HeaderText="اطلاعات پایه" ID="TabPanel1"&gt;
     &lt;ContentTemplate&gt;
      &lt;div class="row"&gt;
       &lt;span style="width: 100px" class="rowtitle"&gt;تصویر &lt;/span&gt;
        &lt;asp:FileUpload ID="ImageFileUpload" runat="server"/&gt;
        &lt;asp:ImageButton ID="RemoveImageButton" runat="server" ImageUrl="~/images/delete.png" /&gt;
      &lt;/div&gt;
      &lt;div class="row"&gt;
       &lt;span style="width: 100px" class="rowtitle"&gt;Category&lt;/span&gt;
       &lt;asp:DropDownList ID="CategoryDropDownList" runat="server" Width="200px" AutoPostBack="True" DataTextField="Name" DataValueField="ID" OnSelectedIndexChanged="CategoryDropDownList_SelectedIndexChanged" /&gt;
       &lt;asp:RequiredFieldValidator ID="CategoryRFV" runat="server" ControlToValidate="CategoryDropDownList" ForeColor="Red" ValidationGroup="Save" ErrorMessage="مجموعه را انتخاب کنید." Text="*" /&gt;
      &lt;/div&gt;
      &lt;div class="row" style="height: 300px"&gt;
       &lt;span style="width: 100px" class="rowtitle"&gt;توضیحات کامل&lt;/span&gt;
       &lt;editor:HtmlEditor Style="float: left" runat="server" Width="600px" ID="DescriptionHtmlEditor" /&gt;
       &lt;asp:RequiredFieldValidator Text="*" ID="DescriptionRFV" runat="server" ControlToValidate="DescriptionHtmlEditor" ForeColor="Red" ValidationGroup="Save" ErrorMessage="توضیحات را وارد کنید ." /&gt;
       &lt;/div&gt;
     &lt;/ContentTemplate&gt;
    &lt;/cc1:TabPanel&gt;
   &lt;/cc1:TabContainer&gt; 
   &lt;div class="row" style="text-align: center"&gt;
    &lt;asp:Button ID="SaveButton" class="button" Width="100px" OnClick="SaveButton_Click" runat="server" ValidationGroup="Save" Text="ذخیره" /&gt;
   &lt;/div&gt;
  &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
</code></pre>

<p>when i was trying to access the FileUpload FileName property after a partial postback of an updatepanel, it was empty.</p>

<p>I want get Filenme of uploadpanel in oncange event witj javascrip, but i don't get Fullpath of file.</p>

<pre><code> function FileChange()
   {
    var filename = document.getElementById('&lt;%= FileNameUpload.ClientID  %&gt;');
    var file = document.getElementById('fileupload');
    filename.value = file.value;
   }
</code></pre>

<p>How to get filename of fileupload after partial postback?</p>
