Personal Web Server in Windows ME

08-20-2002, 08:15 AM
I'm new to ASP and am having trouble getting Personal Web Server to recognize my script in Windows ME. For testing purposes I created an HTML page with a link to the .asp page. Both the link page and .asp page are in the \Webshare\wwwroot directory. When I open the html page and click on the link, the ASP page is displayed in the browser but none of the VBScript is executed. Doing a View-Source the script is still visible. Obviously the web server didn't read and execute the script. Personal Web Server is running but was added from an old install of FrontPage98. I normally use Notepad to write HTML but installed FrontPage to see what it was about. Can anyone get me pointed in the right direction? I've searched Microsoft's website with little luck...


08-20-2002, 08:45 AM
What is the code in your HTML to link to the ASP page?

08-20-2002, 09:07 AM
<a href="ASPTest.asp">ASP Test</a>

08-20-2002, 09:22 AM
which directory is ASPTest.asp in?

08-20-2002, 09:48 AM
The same one as the .htm file - C:\Webshare\wwwroot

08-20-2002, 10:16 AM
Make sure that you are not executing the file locally. In order for the ASP scripting engine to parse the script, you must run it through a virtual path on the web server.

So, if you execute the .html file locally (for instance, by clicking on it in explorer) then the link you specified above is going to, in turn, execute the .asp script locally (it won't be parsed). Make sure you are typing the URL into the browser's address bar:

'Will work

'Will not work

08-20-2002, 11:28 AM
I'll give that a what you're saying is that my link should be like this:

<a href="http://localhost/ASPTest.asp">ASP Test</a>

instead of:

<a href="ASPTest.asp">ASP Test</a> ???

What would the link be if it's on the internet server?

Thanks for your help!

Derek Stone
08-20-2002, 03:14 PM
You misunderstood him. When you open up your browser you should be typing "http://localhost/ASPTest.asp" in the address bar, not "C:\inetpub\wwwroot\ASPTest.asp".

08-21-2002, 05:58 AM
I'm not accessing the asp page by typing the address in the browser but instead I'm accessing it from a link on a plain html page. So based on all of the above, should the link read as follows:

<a href="http://localhost/ASPTest.asp">ASP Test</a>

08-21-2002, 06:57 AM
<a href="http://localhost/ASPTest.asp">ASP Test</a> test will work... regardless of how you are viewing the page. But, this is only going to be useable from YOUR computer.

So, back to the original problem, when you click on the link I just listed... what happens?

08-21-2002, 07:19 AM
Not sure yet - my laptop is at home today. I'll have to try it out tonight when I get home from work.

Thanks for the help!

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum