Download File

Thread Solved

Join Date: Apr 2007
Posts: 439
Reputation: Fungus1487 is on a distinguished road 
Solved Threads: 50
Fungus1487's Avatar
Fungus1487 Fungus1487 is offline Offline
Posting Pro in Training

Re: Download File

 
0
  #11
Dec 11th, 2007
if this is asp.net you wont get a file dialog on a web page.

best thing to do is as you have done print a list of files in the directory to the screen with a link for each one.

then have an iframe in the page. onclick of a link pass to the iframe the page you use to download and append the file path using GET method i.e.

download.aspx?filename=c:\mydocs\file1.jpg

then in the ONLOAD section of your web page codebehing you can use 'Request.Querystring('filename')' to attain this variable and perform the download.

this way you arent taking the user elsewhere when they download the file and it will look like its all integrated if the iframe is hidden.

in short an iframe is how most integrated upload download forms work on major websites.
When Autumn Falls [ http://www.whenautumnfalls.co.uk ] &&
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 53
Reputation: dotNetDummi is an unknown quantity at this point 
Solved Threads: 0
dotNetDummi's Avatar
dotNetDummi dotNetDummi is offline Offline
Junior Poster in Training

Re: Download File

 
0
  #12
Dec 11th, 2007
wow~~ That's cool.

So I get the file names and append to the link . aha! I need this method for my search function.
But I have to research on iFrame first.

I know it in Java but not too sure if it refers to internal frame. lol.

Thanks !!! I will try this.
Serene Joey
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 53
Reputation: dotNetDummi is an unknown quantity at this point 
Solved Threads: 0
dotNetDummi's Avatar
dotNetDummi dotNetDummi is offline Offline
Junior Poster in Training

Re: Download File

 
0
  #13
Dec 11th, 2007
erm, just to clarify, it will be similer like some music web sites right?

I can also do this in gridview, with different links to the uploaded file, am I right?
Serene Joey
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 439
Reputation: Fungus1487 is on a distinguished road 
Solved Threads: 50
Fungus1487's Avatar
Fungus1487 Fungus1487 is offline Offline
Posting Pro in Training

Re: Download File

 
0
  #14
Dec 12th, 2007
internal frame
correct.

it will be similer like some music web sites right?
correct.

I can also do this in gridview, with different links to the uploaded file, am I right?
correct.


happy hunting.
Last edited by Fungus1487; Dec 12th, 2007 at 5:52 am.
When Autumn Falls [ http://www.whenautumnfalls.co.uk ] &&
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:




Views: 5481 | Replies: 13
Thread Tools Search this Thread



Tag cloud for ASP.NET
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC