 |
| ASP.NET 2.0 Basics If you are new to ASP or ASP.NET programming with version 2.0, this is the forum to begin asking questions. Please also see the Visual Web Developer 2005 forum. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the ASP.NET 2.0 Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

January 5th, 2007, 05:01 AM
|
|
Authorized User
|
|
Join Date: Jun 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
How to donwload file from wwwroot?
I was successful uploaded the file/picture to the wwwroot and save the file name to the database. And if i want to download the file from the wwwroot so how to create the download linking??
pls help...
|
|

January 5th, 2007, 10:12 AM
|
 |
Friend of Wrox
|
|
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
|
|
Usually you just provide a hyperlink to the file:
<a href="http://myservername/somedirectory/myfile.ext">Click me</a>
If this isn't what you're looking for you're going to need to provide more description.
- Peter
|
|

January 5th, 2007, 09:36 PM
|
|
Authorized User
|
|
Join Date: Jun 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
quote:Originally posted by planoie
Usually you just provide a hyperlink to the file:
<a href="http://myservername/somedirectory/myfile.ext">Click me</a>
If this isn't what you're looking for you're going to need to provide more description.
-Peter
|
Thanks for your reply.
Now i can download file from the localhost already but if i want to via database 1st, bcos i want to set permission for the file and get information of file.
Now i was saved the filename to database and saved the file to the localhost. But i dont know how to get the filename from the database and get linking to download.
|
|

January 8th, 2007, 04:40 AM
|
|
Registered User
|
|
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
very good!
|
|

January 13th, 2007, 12:02 AM
|
|
Authorized User
|
|
Join Date: Jun 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Quote:
quote:Originally posted by Imar
Hi there,
You can take a look at this article: http://Imar.Spaanjaars.Com/QuickDocId.aspx?quickdoc=414
It explains how to upload files and save them in a database, and how to retrieve those files again so they can be downloaded.
Cheers,
Imar
Really fantastic!!!
I really dont know how to appreciate to you...:)
i almost want to give up this function already, but now i see solution...
thank you.....
i try to do it in VB, if i still not understand, can i continous to ask you question??
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
|
|
|

January 13th, 2007, 11:28 AM
|
 |
Wrox Author
|
|
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
|
|
Quote:
|
quote: try to do it in VB, if i still not understand, can i continous to ask you question??
|
Sure, you can always post here.
I am also working on a VB version of the application, but that might take a while...
Imar
---------------------------------------
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Everyone is unique, except for me.
Author of ASP.NET 2.0 Instant Results and Beginning Dreamweaver MX / MX 2004
Want to be my colleague? Then check out this post.
|
|
 |