Results 1 to 16 of 16

Thread: ASP

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    153
    I wrote an ASP program using notepad. It was an example straight from a book. The program doesn't display the results correctly. I'm assuming that ASP is installed on the web server. Is there a way to check to see if ASP is installed or any ideas what may be happening? I checked the coding on two examples from the book, but still can't get the desired results.

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Hmm.. Try making a file called 'hello.asp' or something and put this in it:

    Code:
    <HTML>
      <HEAD>
        <TITLE></TITLE>
      </HEAD>
      <BODY>
        <H1><%="Hello world"%></H2>
      </BODY>
    </HTML>
    If that displays incorrectly I'd say there's a problem with ASP. A bit clumsy I know but I never installed ASP so I'd have no idea how to find out.
    Harry.

    "From one thing, know ten thousand things."

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    153

    ASP

    I tried it and nothing displayed on the page. So I'm assuming that ASP is not installed on the server. Unfortunately, the web server is new and so is the administrator. Thanks.

  4. #4
    Lively Member
    Join Date
    Jun 1999
    Location
    Garden Grove, CA, USA
    Posts
    110

    Lightbulb Try this out...

    Try the following:
    first line of the file always be...
    <% language=vbscript %>

    <html>
    <head><title>Time Test</title></head>
    <body>
    The time is: <% =Time %>
    </body>
    </html>
    and save it as *.asp...

    to be able to run ASP you need IIS, or PWS, or any other server which have ASP support... if you are running on any other platforms accept Windows 95/98 with a server that doesn't support ASP then you might want to check out http://www.chilisoft.com... they have a program called chilisoftASP which will enable you to run *.ASP on any server.
    ngphuocthinh

  5. #5
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    I've never included that <% language=vbscript %> line, and my VBScript works fine...

    Harry.

    "From one thing, know ten thousand things."

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    153

    ASP

    By including the first line <%@ LANGUAGE='VBSCRIPT" %> I get the result: "The time is:". That's the problem that I've having. It doesn't recognizes some of the coding.

  7. #7
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Well like I said before, it sounds like there's a problem with ASP, like maybe it's not installed. If the web server's new maybe they didn't get around to installing it yet.
    Harry.

    "From one thing, know ten thousand things."

  8. #8
    Guest
    the following code is optional if the default scripting language for the webserver is VBScript:
    Code:
    <%@ LANGUAGE="VBSCRIPT" %>
    HarryW, you've never had a problem(by not including that line) because the default server side scripting language on the server you're using is VBScript.

    I'm not sure what the difficulty is in determining whether or not you can run ASP on your machine. Either you installed PWS or IIS or you didn't. If you did, then ASP is installed by default(unless for some strange reason you deleted asp.dll which resides in your system32(on nt) directory and is responsible for parsing asp). Also note, you have to request asp pages from a web server, that is, you have to use the http protocol on PWS/IIS to initiate the asp parsing engine. Running c:\youraspfile.asp in a webbrowser will not work, it has to be requested from a web server.

  9. #9
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    Oh yeah, I forgot about that last point *Doh*

    Same goes for PHP.
    Harry.

    "From one thing, know ten thousand things."

  10. #10
    Lively Member
    Join Date
    Jun 1999
    Location
    Garden Grove, CA, USA
    Posts
    110

    Angry ()()87934$%^@4

    Doh, all of us except pvb...
    ngphuocthinh

  11. #11

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    153

    ASP

    PVB is correct. That's exactly what I'm doing with regards to just running an ASP file. I simply created a file in a folder on server. Now, how do I request ASP from the server?

    Thanks!

  12. #12
    Guest

    Requesting ASP

    Assuming you've installed PWS/IIS with all of the defaults your root web directory, http://127.0.0.1/ or http://yourmachinename/, will be physically located in c:\inetpub\wwwroot\ - which is where you want to put all of your asp files, probably in a subdirectory.

    If you don't know where your physical root directory is located, go to Start > Programs > Windows NT Option Pack 4 > Internet Services Manager and start the IIS Manager MMC. Righ click on Default Website and select properties. Click on the Home Directory tab and next to Local Path you should see c:\InetPub\wwwroot\ (which is the default) or whatever physical directory has been assigned for root web. (it should be the same for PWS but I don't have PWS installed so the above refers to IIS which i do have installed. it should be the same up to this point though...)

    So for example you've created a file named HelloWorld.asp then put that in c:\InetPub\wwwroot\. Open up your browser and type in http://127.0.0.1/HelloWorld.asp or http://YourMachineName/HelloWorld.asp and you have just requested your page from the webserver.

  13. #13
    New Member
    Join Date
    Dec 1999
    Location
    Wakefield, West Yorkshire, UK
    Posts
    10

    Question

    Totally going off the subject here. But does anyone know how i can register my IP address so that i can use my computername on the net? I guess i have to register it with a DNS yeah?

    Say for example i have the IP 123.123.123.2 people have to type in http://123.123.123.2 to get on to my web server. If i change my computer name to danscomputer.com does that mean people can type in http://danscomputer.com to get to my site?

    Has anyone done this? Can anyone help me?

    I am wanting to do it for a company. So tell me it the painfull way.

    Cheers,
    =======
    Dan

  14. #14
    Guest
    go here http://www.networksolutions.com and register danscomputer.com(it's actually available if you want that one). I think it's around 70 bucks for 2 years registration and I believe they allow you to save that name for up to 10 years now. Anyway, i think if you running the show you have to install DNS on your machine, but I'm totally positive. I'm sure they've got FAQ's that cover all of that.

  15. #15

    Thread Starter
    Addicted Member
    Join Date
    Nov 1999
    Posts
    153

    ASP

    PVB,
    I tried your suggestion by putting the ASP files in th C:\InetPub\wwwroot directory. That didn't work. Actual I didn't have the WinNT, OptionPack, Internet Service Manager, etc. path on my machine. I installed PWS, but was still unable to get an ASP file to run correctly. The helpdesk are not too responsive, if you know what I mean. Any more suggestions?

    Strangely, I'm able to run other ASP files from the PWS sample directory. However, running these files has brought a potential problem to my attention. For some time, while browsing, I constantly get error messages when loading certain pages. The error is "An error occurred on this page while reading the script

    Line: 70
    Char: 1
    Error: Object Required
    Code: 0

    Do you want to continue running script on this page?"


    I hope this help shed some light on my problem.

    Thanks!

    [Edited by Hutty on 04-24-2000 at 04:06 PM]

    [Edited by Hutty on 04-24-2000 at 04:39 PM]

  16. #16
    Guest
    Sounds more like a javascript error rather than an ASP error, if ASP fails you won't get a choice on whether you want to finish running the script, it just fails. If there's javascript on the page that's failing, check and make sure it's perfect(i.e. no errors), if it's still failing post or email the code.

Posting Permissions

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



Click Here to Expand Forum to Full Width