Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to program a download feature

Status
Not open for further replies.

vatawna

Programmer
Feb 24, 2004
67
0
0
US
I need to create a webpage that allows users to download some files. I know how create a button, but I'm stuck from there. Once a button is clicked, the files need to be downloaded to the user's machine.

Can anyone show me how to do this?

Thanks.
 
Hi,

You can use a LinkButton and set the targetUrl to the file path (relative). When the user clicks it, they will get the option to save the file.

Hope this helps,

Graeme

PS You might be better posting this in the ASP.Net forum

"Just beacuse you're paranoid, don't mean they're not after you
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top