forum

Home / DeveloperSection / Forums / I want to get full path of <asp:fileupload > and then client can click the Preview button to see what file he/here has uploaded.

I want to get full path of <asp:fileupload > and then client can click the Preview button to see what file he/here has uploaded.

Nattapong Unaregul 7235 22-Jul-2012
Here is my current code,When user browse his/her file the Preview button will be enabled 
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
        <asp:FileUpload ID="FileUpload1" runat="server" onchange="FileUpload_OnChange(this,event);"   />  &nbsp; &nbsp; &nbsp;
<input  type="button" id ="Preview" value = "Preview" disabled="true"/>
 function FileUpload_OnChange(sender, e) {
        document.getElementById("Preview").disabled = false;
        }
</asp:Content>

Updated on 23-Jul-2012

Can you answer this question?


Answer

1 Answers

Liked By