|
|
ran_p 09-26-2005, 05:42 PM Hi everybody!
I want to give the users an option to download to their computer ASP file that is existing in my server, is it possible?
SpirtOfGrandeur 09-26-2005, 06:11 PM Sure is and this is how you do it.
You have a link on the page that you want them to be able to DL and send the URL to another page. Such as if your page was 'somepage.asp' you would have a link called 'downloadasp.asp?ref=somepage.asp'. 'downloadasp.asp' would then read the contents of 'somepage.asp' and spit it all to the screen. 'download.asp' would have to have its headers changed so that it sent back a text file but I am sure this will be easy for you to figure out :)
ran_p 09-26-2005, 06:33 PM Humm.. I didn't understand.. what i'm suppose to do?!
There isn't any code that do it?
SpirtOfGrandeur 09-26-2005, 06:50 PM I am sure some one else will write the code for you. I will/can not. Number one I am busy and number two I have classes tonight, therefore I have no time.
isaaclloyd 09-27-2005, 12:49 AM From what I understand your just trying to allow people to view a ASP page's source code. Here is a page explaining how to do that: http://www.asp101.com/samples/source.asp
~Isaac~
Spudhead 09-27-2005, 12:30 PM 1. Open ASP file in Notepad
2. Save as filename.txt
3. Upload to server
4. <a href="filename.txt">clicky</a>
glenngv 09-27-2005, 01:04 PM http://marcustucker.com/blogold/200404archive001.asp#1081202785001
|
|
|
|
EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum
vBulletin® v3.8.2, Copyright ©2000-2013, Jelsoft Enterprises Ltd.