| | |
Download File
Please support our ASP.NET advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
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.
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
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
•
•
•
•
internal frame
•
•
•
•
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?
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
Designdotworks [ http://www.designdotworks.co.uk ] Web / Graphic / Software Design
![]() |
Similar Threads
- download any file!!! (Windows NT / 2000 / XP)
- download file on portals jsr 168 (JSP)
- download file in website (Pascal and Delphi)
- php download a file without redirecting (PHP)
- can't shut down some download file (OS X)
- can't download on ie (Web Browsers)
Other Threads in the ASP.NET Forum
- Previous Thread: Dropdown list in ASP.NET - How to get value selected
- Next Thread: copy a project to another computer
Views: 5481 | Replies: 13
| Thread Tools | Search this Thread |
Tag cloud for ASP.NET
.net 2.0 3.5 ajax alltypeofvideos appliances application asp asp.net beginner box browser businesslogiclayer button c# cac checkbox class complex control countryselector dataaccesslayer database datagrid datagridview datalist deployment development dgv dialog dropdownmenu dynamic dynamically edit editing embeddingactivexcontrol feedback fileuploader fill findcontrol flash folder form gridview gudi identity iis image javascript languages list listbox maps mobile mouse mssql nameisnotdeclared news novell numerical opera parent problem profile radio redirect registration relationaldatabases reportemail response.redirect richtextbox rows schoolproject search security select services sessionvariables silverlight smoobjects software sql sql-server ssl theft tracking treeview validatedate validation vb.net videos vista visualstudio vs2008 web webapplications webdevelopment webprogramming wizard xsl





