Can someone give me a test ASP script to see if everything works on my computer?
| SitePoint Sponsor |
Can someone give me a test ASP script to see if everything works on my computer?





Try Kevin Yank's article on Sitepoint for getting started with ASP.
save:
<html>
<head>
<title>
<%="asp works!"%>
</title>
</head>
<body>
<%="asp works!"%>
</body>
</html>
This is my ASP test page that I use... I presume this is what you want... save it as test.asp
All I get is a blank page with <%="asp works!"%> in the title.
Then it doesn't work![]()




rofl![]()
![]()
![]()
![]()
||Dave Di Biase||
----------------------------------
"There are 2 secrets in life. 1) Never say everything you know."
GFXWARS - The ultimate graphics battle!





Did you actually save it as .asp? Check to make sure its not called "test.asp.html". Also, it must be run from the web server, not from directly off your hard drive. For instance, it should be run from "http://localhost/" and not from "c:\".





The things that Wes mentioned are most likely your issue. Make sure you run it from the server. If all else fails, then yes, ASP does not run correctly.
I myself can't think of any other reasons why this output would occur.
good luck with it, though.




Ah yes...good idea wes...Originally posted by Wes DeMoney
Did you actually save it as .asp? Check to make sure its not called "test.asp.html". Also, it must be run from the web server, not from directly off your hard drive. For instance, it should be run from "http://localhost/" and not from "c:\".
Run it from the server means run it in a specific folder...I may be wrong but if you are using IIS the location is C:/Inetpub/wwwroot/
whatever you put in there will allow you to run the scripts...
If you put the asp anywhere else and try to run it from say...the desktop it will ask you to download the ASP script...that means it wont work...
I personally think this problem is something other then what wes or goob said. It wouldn't allow you to run the script like I said on my system it asks you to download the file...![]()
![]()
![]()
Have Fun![]()
||Dave Di Biase||
----------------------------------
"There are 2 secrets in life. 1) Never say everything you know."
GFXWARS - The ultimate graphics battle!





The default web directory for IIS and PWS is c:\Inetpub\wwwroot, but you cannot run the asp files from there, they must actually invoke the web server's processing, and hence, be called upon from http://localhost/path/page.asp.
Bookmarks