Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Call ASP
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Call ASP

 Post Reply Post Reply
Author
Hrcko View Drop Down
Newbie
Newbie


Joined: 07 May 2004
Location: Croatia
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Hrcko Quote  Post ReplyReply Direct Link To This Post Topic: Call ASP
    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 !

Back to Top
michael View Drop Down
Senior Member
Senior Member
Avatar

Joined: 08 April 2002
Location: United States
Status: Offline
Points: 4670
Post Options Post Options   Thanks (0) Thanks(0)   Quote michael Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Semikolon View Drop Down
Senior Member
Senior Member


Joined: 09 September 2003
Location: Norway
Status: Offline
Points: 1718
Post Options Post Options   Thanks (0) Thanks(0)   Quote Semikolon Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.