file upload control using ajax(update panel)

By Abhijit barua Aug 23, 2012 file upload control using ajax(update panel)
Today i want to show file upload control using ajax

here is .aspx 

 <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <asp:PostBackTrigger ControlID="Button1"/>
    <asp:FileUpload ID="FileUpload1" runat="server" />
      <asp:Button ID="Button1" runat="server" Text="Button" onclick="Button1_Click" />

And at .cs page you can get like below.

 protected void Button1_Click(object sender, EventArgs e)
        string a = FileUpload1.PostedFile.FileName;


Hire Mobile & Web Developer on demand. 100% satisfaction. Try for 1 week or Money Back. Local and remote developers available all over USA.

Latest Blogs