uncelmSaumn
New Member
I have a FileUpload in the Updatepanel.\[code\]<asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Always"><Triggers> <aspostBackTrigger ControlID="SaveButton" /></Triggers><ContentTemplate><cc1:TabContainer CssClass="visoft__tab_xpie7" runat="server" ID="tab" ActiveTabIndex="0" Width="100%" Font-Size="11px"> <cc1:TabPanel runat="server" HeaderText="??????? ????" ID="TabPanel1"> <ContentTemplate> <div class="row"> <span style="width: 100px" class="rowtitle">????? </span> <asp:FileUpload ID="ImageFileUpload" runat="server"/> <asp:ImageButton ID="RemoveImageButton" runat="server" ImageUrl="~/images/delete.png" /> </div> <div class="row"> <span style="width: 100px" class="rowtitle">Category</span> <aspropDownList ID="CategoryDropDownList" runat="server" Width="200px" AutoPostBack="True" DataTextField="Name" DataValueField="ID" OnSelectedIndexChanged="CategoryDropDownList_SelectedIndexChanged" /> <asp:RequiredFieldValidator ID="CategoryRFV" runat="server" ControlToValidate="CategoryDropDownList" ForeColor="Red" ValidationGroup="Save" ErrorMessage="?????? ?? ?????? ????." Text="*" /> </div> <div class="row" style="height: 300px"> <span style="width: 100px" class="rowtitle">??????? ????</span> <editor:HtmlEditor Style="float: left" runat="server" Width="600px" ID="DescriptionHtmlEditor" /> <asp:RequiredFieldValidator Text="*" ID="DescriptionRFV" runat="server" ControlToValidate="DescriptionHtmlEditor" ForeColor="Red" ValidationGroup="Save" ErrorMessage="??????? ?? ???? ???? ." /> </div> </ContentTemplate> </cc1:TabPanel> </cc1:TabContainer> <div class="row" style="text-align: center"> <asp:Button ID="SaveButton" class="button" Width="100px" OnClick="SaveButton_Click" runat="server" ValidationGroup="Save" Text="?????" /> </div> </ContentTemplate> </asp:UpdatePanel>\[/code\]when i was trying to access the FileUpload FileName property after a partial postback of an updatepanel, it was empty.I want get Filenme of uploadpanel in oncange event witj javascrip, but i don't get Fullpath of file.\[code\] function FileChange() { var filename = document.getElementById('<%= FileNameUpload.ClientID %>'); var file = document.getElementById('fileupload'); filename.value = http://stackoverflow.com/questions/14072331/file.value; }\[/code\]How to get filename of fileupload after partial postback?