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

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>
</form>

 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.....
nikron2626Asked:
Who is Participating?
 
softplusCommented:
Many possibilities to do that in ASP.NET, you might try some links and see which possibility matches your needs best:
http://www.aspheute.com/english/20000802.asp
http://www.codeproject.com/Purgatory/UploadFiles.asp
http://aspalliance.com/150

there are also 3rd party objects available for this, e.g. Active Upload ( http://www.activeup.com/products/components/activeupload/ ) (many others)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.