You must Sign In to post a response.
  • Category: ASP.NET

    Holding filename in fileupload control

    hi every one,
    i'am trying to hold the file name in fileupload control last 2 days but i'm not get it.please tell me.
    "file upload control is dynamic.first i'am getting one file name in control again i click the add button that time i want hold the value in first fileupload control as well as dynamically creating onther fileupload control"

    i hope it's understanding.

    Thanks and Regards.
  • #765840
    so basically you want multiple file upload right ?
    There are many ways to implement multiple file upload
    1. using Ajax uploader
    Ajax Uploader is an easy to use, hi-performance ASP.NET File Upload Control which allows you to upload multiple files to web server without refreshing the page
    2. using .net framework 4.50
    The FileUpload.AllowMultiple property in .NET 4.5 and higher will allow you the control to select multiple files.
    in aspx file upload tag,add like class="multi"
    <asp:FileUpload ID="FileUpload1" class="multi" runat="server" />
    check below sample link
    http://kuttyrajesh.blogspot.in/2016/02/multiple-file-upload-in-fileupload.html

    Thanks
    Koolprasd2003
    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #765843
    Hi,

    As per my understand the post you are looking for multiple file upload right?

    If you are looking for the same, refer below link this might be helpful to you http://www.c-sharpcorner.com/UploadFile/99bb20/upload-multiple-files-using-fileupload-control-in-Asp-Net-4/

    --------------------------------------------------------------------------------
    Give respect to your work, Instead of trying to impress your boss.

    N@veen
    Blog : http://naveens-dotnet.blogspot.in/

  • #765844
    hi sir,
    Thank you for responding.
    "http://kuttyrajesh.blogspot.in/2016/02/multiple-file-upload-in-fileupload.html" i'am not understanding this code.

  • #765847
    please check y screen shot.

    Delete Attachment

  • #765848
    basically below link uses JQuery to upload multiple files
    http://kuttyrajesh.blogspot.in/2016/02/multiple-file-upload-in-fileupload.html
    Here I am giving again some simple code links, please check below
    http://www.aspsnippets.com/Articles/Upload-multiple-files-with-ASPNet-45-FileUpload-control-in-Visual-Studio-2012-and-2013.aspx
    it uses ASP.Net 4.5 FileUpload control in Visual Studio 2012 and 2013
    hope it helps

    Thanks
    Koolprasd2003
    Editor, DotNetSpider MVM
    Microsoft MVP 2014 [ASP.NET/IIS]

  • #765849
    Please check my screen shot.it contains one button and textbox and fileupload control.when i click the button the textbox will hold the value but fileupload will not hold the value

    Delete Attachment


Sign In to post your comments