SitePoint Sponsor |
|
User Tag List
Results 1 to 10 of 10
Thread: ASP test
-
Nov 2, 2001, 22:13 #1
ASP test
Can someone give me a test ASP script to see if everything works on my computer?
-
Nov 3, 2001, 08:15 #2
- Join Date
- Jan 2001
- Location
- Milton Keynes, UK
- Posts
- 1,011
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Try Kevin Yank's article on Sitepoint for getting started with ASP.
-
Nov 3, 2001, 11:07 #3
- Join Date
- Jun 2001
- Location
- Toronto, Canada
- Posts
- 9,123
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
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
-
Nov 3, 2001, 21:48 #4
All I get is a blank page with <%="asp works!"%> in the title.
-
Nov 4, 2001, 00:15 #5
- Join Date
- Jun 2001
- Location
- Toronto, Canada
- Posts
- 9,123
- Mentioned
- 2 Post(s)
- Tagged
- 0 Thread(s)
Then it doesn't work
-
Nov 4, 2001, 09:01 #6
- Join Date
- Aug 2001
- Location
- Toronto, Canada
- Posts
- 829
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
lol
rofl
||Dave Di Biase||
----------------------------------
"There are 2 secrets in life. 1) Never say everything you know."
GFXWARS - The ultimate graphics battle!
-
Nov 4, 2001, 14:01 #7
- Join Date
- Jul 2000
- Location
- Here
- Posts
- 1,010
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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:\".
-
Nov 4, 2001, 21:44 #8
- Join Date
- Sep 2000
- Location
- United States
- Posts
- 1,921
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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.
-
Nov 5, 2001, 17:41 #9
- Join Date
- Aug 2001
- Location
- Toronto, Canada
- Posts
- 829
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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!
-
Nov 5, 2001, 20:36 #10
- Join Date
- Jul 2000
- Location
- Here
- Posts
- 1,010
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
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