Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Basics
|
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
 
Old January 5th, 2007, 05:01 AM
Authorized User
 
Join Date: Jun 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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...
 
Old January 5th, 2007, 10:12 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

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
 
Old January 5th, 2007, 09:36 PM
Authorized User
 
Join Date: Jun 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.


 
Old January 7th, 2007, 10:25 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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
---------------------------------------
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.
 
Old January 8th, 2007, 04:40 AM
Registered User
 
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to lhjnn
Default

very good!

 
Old January 13th, 2007, 12:02 AM
Authorized User
 
Join Date: Jun 2006
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

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.
 
Old January 13th, 2007, 11:28 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing C:\Inetpub\wwwroot on networked machine RussellT Dreamweaver (all versions) 7 March 5th, 2006 08:58 AM
allow others on same network to view my wwwroot crmpicco HTML Code Clinic 2 September 29th, 2005 06:35 AM
open my PC to allow other users to view my wwwroot crmpicco HTML Code Clinic 2 July 3rd, 2005 03:42 AM
Update Problem under wwwroot folder theokrtz Classic ASP Databases 4 June 8th, 2004 07:29 AM
developing aspx outside wwwroot folder dhaywirex ASP.NET 1.0 and 1.1 Basics 7 April 6th, 2004 09:58 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.