SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Thread: ASP test

  1. #1
    Spam Can Kill!!! Disk-t's Avatar
    Join Date
    Jul 2001
    Location
    n/a
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ASP test

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

  2. #2
    SitePoint Wizard
    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.

  3. #3
    SitePoint Wizard silver trophy Jeremy W.'s Avatar
    Join Date
    Jun 2001
    Location
    Toronto, Canada
    Posts
    9,121
    Mentioned
    1 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
    SVP Marketing, SoCast SRM
    Personal blog: Strategerize
    Twitter: @jeremywright

  4. #4
    Spam Can Kill!!! Disk-t's Avatar
    Join Date
    Jul 2001
    Location
    n/a
    Posts
    214
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    All I get is a blank page with <%="asp works!"%> in the title.

  5. #5
    SitePoint Wizard silver trophy Jeremy W.'s Avatar
    Join Date
    Jun 2001
    Location
    Toronto, Canada
    Posts
    9,121
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Then it doesn't work
    SVP Marketing, SoCast SRM
    Personal blog: Strategerize
    Twitter: @jeremywright

  6. #6
    SitePoint Guru davedibiase's Avatar
    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!

  7. #7
    SitePoint Wizard wdmny's Avatar
    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:\".

  8. #8
    Say WHA?! goober's Avatar
    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.
    Sean Killeen [LinkedIn] [Twitter] [Web]

    Warning: Reality.sys corrupted. Universe halted. Reboot? (Y/N)

  9. #9
    SitePoint Guru davedibiase's Avatar
    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:\".
    Ah yes...good idea wes...

    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!

  10. #10
    SitePoint Wizard wdmny's Avatar
    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •