download asp file with source code
I need to download the asp files with the full source code.
I tried the following code:
<A HREF="view-source:http://Server name/Virtual directory/a.asp"> click to download file </A>
This code is executing the ASP file and giving the output. How do I download the ASP file with full source code (or without executing the file)?
Re: download asp file with source code
Hey Ganesh Iwas wondering if u can tell me how u managed to download the files I am also facing similar problem and need some help kindly reply
Re: download asp file with source code
Welcome to the forums commando106. When you have a problem, please create a new thread rather than posting on someone else's topic. You will notice that this thread is 5+ years old.
As concerning your problem, it is impossible to read the ASP source code without having direct access to the host. You can't download nor read it for many reasons.
1. The server is made to execute it before passing it to the client.
2. That would be a HUGE security breach if anyone could read any server-side code.
Re: download asp file with source code
Thanx alot peejAvery will take anote of that....
Re: download asp file with source code
You could use a wrapping page that reads the page you want to download and forces it to a file to be downloaded. I'm not that good at HTML, but I know it's possible. That way, it would be forced to read the asp page as a file instead of trying to execute it.
Re: download asp file with source code
Now that makes me think. This thread is unclear.
As I understood it, the person is trying to download server-side code from someone else's server. If this is the case...it cannot be done.
However, it could be trying to make your own server download server-side code.If this is the case...you can do KrisSimonis' idea. It is called a force download. Usually this is done by having another file, usually named download.ext which reads the file.