ASP.Net - Uploading and Downloading files from within a Datalist

Posted on 2005-05-12
Last Modified: 2008-03-10
We need to be able to bring up a SaveAs dialog box when a user clicks Upload from within a datalist to upload a report. This report and its location need to be saved in a SQL Server database. An option must exist whereby another user can login and download/view the saved report.

Is there a way to upload and download files in ASP.NET / VB.NET (Not C#).

I have tried,

<input id="txtFile" type="file" name="txtFile" runat="server">
<br />
<asp:button id="btUpload" runat="server" text="submit"></asp:button>

 way but it seems that the Upload button does not fire the ItemCommand when embedded in a datalist. Can someone please provide code or a way to do this?

Many Thanks.....
Question by:nikron2626
    1 Comment
    LVL 13

    Accepted Solution

    Many possibilities to do that in ASP.NET, you might try some links and see which possibility matches your needs best:

    there are also 3rd party objects available for this, e.g. Active Upload ( ) (many others)

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
    Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
    In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor ( If you're interested in additional methods for monitoring bandwidt…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now