ASP 101 - Active Server Pages 101 - Web05
The Place ASP Developers Go!

Please visit our partners

Windows Technology Windows Technology
15 Seconds
ASP 101
ASP Wire
VB Forums
VB Wire
internet.commerce internet.commerce
Partners & Affiliates

ASP 101 is an site
ASP 101 is an site
Internet News
Small Business
Personal Technology

Corporate Info
Tech Jobs
E-mail Offers

ASP 101 News Flash ASP 101 News Flash

FAQ for the Source Code sample:

It's cool, but it's not showing anything when I run it?

There are a couple possible reasons for this.

First of all you need to pass it the name of the file to view in the querystring. The file needs to be in the same directory as the script and technically you should URLEncode the filename. For example this would view the source of source.asp:

The other thing which will cause you to not get any results back stems from the purpose this sample was written. Since we use it to show you code that is running on our site, I've implemented a filtering mechanism which tells the script to ignore non-applicable code and therefore not show it. The tags are the HTML comments <!-- BEGIN SCRIPT --> and <!-- END SCRIPT -->. If you don't at least have the beginning tag in the file you're trying to display the source of then nothing will get shown at all. This makes for a nice little security feature to ensure people only see the code you want them to, but if it starts to cramp your style, it can easily be disabled by either commenting out the conditions that check for them and setting ProcessString = 1 or by changing the condition on the limiting If to True.

Was your question not answered above?

Ask a new question

Please note: This form is only for submitting questions about the sample for us to consider including in the FAQ. If we feel the question merits inclusion, we will include it along with a reply. We will not respond to your email individually.

Home |  News |  Samples |  Articles |  Lessons |  Resources |  Forum |  Links |  Search |  Feedback
The Network for Technology Professionals



Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers