Print Page | Close Window

Call ASP

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=10334
Printed Date: 31 March 2026 at 4:32pm
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Call ASP
Posted By: Hrcko
Subject: Call ASP
Date Posted: 07 May 2004 at 8:04am

How can i call asp script within index.html file automaticaly?

I made hit counter and i would like it to appear in index.html !




Replies:
Posted By: michael
Date Posted: 07 May 2004 at 9:13am
You would need to make changes in IIS having html extension call the asp.dll if you don't have access to your web server you are SOL

-------------
http://baumannphoto.com" rel="nofollow - Blog | http://mpgtracker.com" rel="nofollow - MPG Tracker


Posted By: Semikolon
Date Posted: 07 May 2004 at 9:37am
or you can rename index,html to index.asp/default.asp if it's possible to rename the file without big problems..


your host may also map .html files to asp.dll if you ask them in a nice way


Posted By: dpyers
Date Posted: 07 May 2004 at 10:14am

The asp processor (asp.dll) can identify html and call the html processor when it needs to. The html processor cannot identify asp and call the asp processor. As noted above, you would have to rename the file to end in .asp.

at the place you want to insert your asp counter, the lhtml would look something like this

<p> My counter says you are person number <%=counterscript.asp%> to visit my site</p>

I have seen a couple of web servers where for some obscure reason that I never tracked down, an asp page had to start with asp tags so you had to put <%%> at the top of your html.

BTW - The reason we don't change every page to end in .asp is that there's overhead involved with switching back and forth between the processors.



-------------

Lead me not into temptation... I know the short cut, follow me.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net