Wrox Programmer Forums
|
ASP.NET 3.5 Basics If you are new to ASP or ASP.NET programming with version 3.5, this is the forum to begin asking questions. Please also see the Visual Web Developer 2008 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 3.5 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 August 18th, 2010, 11:01 AM
Authorized User
 
Join Date: Nov 2009
Posts: 23
Thanks: 7
Thanked 0 Times in 0 Posts
Default FileDownload functionallity

Hi,

I have developed a softwareprogram and some zip files, which I will like to make available on my new homepage. How can I program my homepage, so people can download my softwareprogram and zipfiles ?

Best regards,
Bo
 
Old August 18th, 2010, 12:24 PM
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 simply link to the file using an HTML anchor tag. For example:

<a href="YourFile.zip">Download now</a>

would work when the zip file is in the same folder as the page that contains the link. For a sub folder you use something like this:

<a href="SubFolder/YourFile.zip">Download now</a>

Hope this helps,

Imar
__________________
Imar Spaanjaars
http://Imar.Spaanjaars.Com
Follow me on Twitter

Author of Beginning ASP.NET 4.5 : in C# and VB, Beginning ASP.NET Web Pages with WebMatrix
and Beginning ASP.NET 4 : in C# and VB.
Did this post help you? Click the button below this post to show your appreciation!
The Following User Says Thank You to Imar For This Useful Post:
ceboc (August 19th, 2010)
 
Old August 19th, 2010, 03:14 AM
Authorized User
 
Join Date: Nov 2009
Posts: 23
Thanks: 7
Thanked 0 Times in 0 Posts
Default

Hi Imar

Thank you for your reply!

Can I also use the anchor tag, if the size of the file is 40 MB ? Is there a better way ?

Best regards,

Bo Christoffersen





Similar Threads
Thread Thread Starter Forum Replies Last Post
Wizard-like functionallity dmfrey BOOK: Expert One-on-One J2EE Design and Development 1 October 22nd, 2003 05:07 AM





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