I have an htm page which is often visted and it's a very established page
and for that reason I cannot change its extension to asp. However, I want to
run a bit of VB code on the server whenever that page is accessed that logs
a couple of details about the accessor (i.e. user) of the htm page. My
question is: How do I launch an asp page (just to run some logging code)
from an htm page.
Perhaps if I explain what I'm trying to achieve then someone can suggest a
better solution:
When a search engine bot crawls my home page I want to log/email the
date/time and bot details. I was thinking of doing this through some VB code
on an ASP page. The bot, however, is crawling my www.mysite.com/index.htm
page so I can't use server side (ASP) code on the page because it's an htm
page.
Thanks 7 1453
Well, for one thing, the information you're looking for is probably in the
IIS logs - however it IS possible to run ASP code in a file marked .htm
do you have full access to this machine, or is it a shared server? (answer
I'm looking for: full administrative access)
--
Jason Brown
Microsoft GTSC, IIS
This posting is provided "AS IS" with no warranties, and confers no
rights.
"guy" <wi*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl... I have an htm page which is often visted and it's a very established page and for that reason I cannot change its extension to asp. However, I want to run a bit of VB code on the server whenever that page is accessed that logs a couple of details about the accessor (i.e. user) of the htm page. My question is: How do I launch an asp page (just to run some logging code) from an htm page.
Perhaps if I explain what I'm trying to achieve then someone can suggest a better solution:
When a search engine bot crawls my home page I want to log/email the date/time and bot details. I was thinking of doing this through some VB code on an ASP page. The bot, however, is crawling my www.mysite.com/index.htm page so I can't use server side (ASP) code on the page because it's an htm page.
Thanks
It's a shared server: i.e. I have my web hosted with a web hosting company.
They, unfortunately, don't give me access to the logs and for that reason I
can't see the info I want.
I do have a number of admin capabilities on the host server via the control
pannel. For example I can set the individual write permissions on files and
directories for IUSR_... etc.
I'm guessing from you're answer that on the IIS admin application you can
set IIS to recognize ASP code in an htm file...?
"Jason Brown [MSFT]" <i-******@online.microsoft.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl... Well, for one thing, the information you're looking for is probably in the IIS logs - however it IS possible to run ASP code in a file marked .htm
do you have full access to this machine, or is it a shared server? (answer I'm looking for: full administrative access)
-- Jason Brown Microsoft GTSC, IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
"guy" <wi*********@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP15.phx.gbl...I have an htm page which is often visted and it's a very established page and for that reason I cannot change its extension to asp. However, I want to run a bit of VB code on the server whenever that page is accessed that logs a couple of details about the accessor (i.e. user) of the htm page. My question is: How do I launch an asp page (just to run some logging code) from an htm page.
Perhaps if I explain what I'm trying to achieve then someone can suggest a better solution:
When a search engine bot crawls my home page I want to log/email the date/time and bot details. I was thinking of doing this through some VB code on an ASP page. The bot, however, is crawling my www.mysite.com/index.htm page so I can't use server side (ASP) code on the page because it's an htm page.
Thanks
guy wrote on 28 feb 2005 in microsoft.public.inetserver.asp.general: I have an htm page which is often visted and it's a very established page and for that reason I cannot change its extension to asp. However, I want to run a bit of VB code on the server whenever that page is accessed that logs a couple of details about the accessor (i.e. user) of the htm page. My question is: How do I launch an asp page (just to run some logging code) from an htm page.
Perhaps if I explain what I'm trying to achieve then someone can suggest a better solution:
<img src="/myManipulations/myVBcodeinASP.asp"
style="width:1px;display:none;">
When a search engine bot crawls my home page I want to log/email the date/time and bot details. I was thinking of doing this through some VB code on an ASP page. The bot, however, is crawling my www.mysite.com/index.htm page so I can't use server side (ASP) code on the page because it's an htm page.
same.
--
Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)
On Mon, 28 Feb 2005 01:26:30 -0500, "guy" <wi*********@hotmail.com>
wrote: I have an htm page which is often visted and it's a very established page and for that reason I cannot change its extension to asp. However, I want to run a bit of VB code on the server whenever that page is accessed that logs a couple of details about the accessor (i.e. user) of the htm page. My question is: How do I launch an asp page (just to run some logging code) from an htm page.
Perhaps if I explain what I'm trying to achieve then someone can suggest a better solution:
When a search engine bot crawls my home page I want to log/email the date/time and bot details. I was thinking of doing this through some VB code on an ASP page. The bot, however, is crawling my www.mysite.com/index.htm page so I can't use server side (ASP) code on the page because it's an htm page.
Bots will normally also crawl ASP, but you have two options. Either
change the HTM extension processing to be processed by the ASP.DLL, or
create an ASP page and use it, then change your HTML to forward to the
ASP page.
Jeff
Works like a dream - thanks.
:)
"Evertjan." <ex**************@interxnl.net> wrote in message
news:Xn********************@194.109.133.29... guy wrote on 28 feb 2005 in microsoft.public.inetserver.asp.general:
I have an htm page which is often visted and it's a very established page and for that reason I cannot change its extension to asp. However, I want to run a bit of VB code on the server whenever that page is accessed that logs a couple of details about the accessor (i.e. user) of the htm page. My question is: How do I launch an asp page (just to run some logging code) from an htm page.
Perhaps if I explain what I'm trying to achieve then someone can suggest a better solution:
<img src="/myManipulations/myVBcodeinASP.asp" style="width:1px;display:none;">
When a search engine bot crawls my home page I want to log/email the date/time and bot details. I was thinking of doing this through some VB code on an ASP page. The bot, however, is crawling my www.mysite.com/index.htm page so I can't use server side (ASP) code on the page because it's an htm page.
same.
-- Evertjan. The Netherlands. (Replace all crosses with dots in my emailaddress)
I tried this on my htm page:
<img src="/myManipulations/myVBcodeinASP.asp"
style="width:1px;display:none;">
As suggested before you suggested the redirecting idea and this (the above)
solution works very well.
Thanks for your help.
"Jeff Cochran" <je*********@zina.com> wrote in message
news:42*****************@msnews.microsoft.com... On Mon, 28 Feb 2005 01:26:30 -0500, "guy" <wi*********@hotmail.com> wrote:
I have an htm page which is often visted and it's a very established page and for that reason I cannot change its extension to asp. However, I want to run a bit of VB code on the server whenever that page is accessed that logs a couple of details about the accessor (i.e. user) of the htm page. My question is: How do I launch an asp page (just to run some logging code) from an htm page.
Perhaps if I explain what I'm trying to achieve then someone can suggest a better solution:
When a search engine bot crawls my home page I want to log/email the date/time and bot details. I was thinking of doing this through some VB code on an ASP page. The bot, however, is crawling my www.mysite.com/index.htm page so I can't use server side (ASP) code on the page because it's an htm page.
Bots will normally also crawl ASP, but you have two options. Either change the HTM extension processing to be processed by the ASP.DLL, or create an ASP page and use it, then change your HTML to forward to the ASP page.
Jeff
If you have access to the script mappings you can map .htm to be processed
by asp.dll. unforunately, I don't think you have that kind of access.
--
Jason Brown
Microsoft GTSC, IIS
This posting is provided "AS IS" with no warranties, and confers no
rights.
"guy" <wi*********@hotmail.com> wrote in message
news:e%****************@tk2msftngp13.phx.gbl... It's a shared server: i.e. I have my web hosted with a web hosting company. They, unfortunately, don't give me access to the logs and for that reason I can't see the info I want.
I do have a number of admin capabilities on the host server via the control pannel. For example I can set the individual write permissions on files and directories for IUSR_... etc.
I'm guessing from you're answer that on the IIS admin application you can set IIS to recognize ASP code in an htm file...?
"Jason Brown [MSFT]" <i-******@online.microsoft.com> wrote in message news:%2****************@TK2MSFTNGP09.phx.gbl... Well, for one thing, the information you're looking for is probably in the IIS logs - however it IS possible to run ASP code in a file marked .htm
do you have full access to this machine, or is it a shared server? (answer I'm looking for: full administrative access)
-- Jason Brown Microsoft GTSC, IIS
This posting is provided "AS IS" with no warranties, and confers no rights.
"guy" <wi*********@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP15.phx.gbl...I have an htm page which is often visted and it's a very established page and for that reason I cannot change its extension to asp. However, I want to run a bit of VB code on the server whenever that page is accessed that logs a couple of details about the accessor (i.e. user) of the htm page. My question is: How do I launch an asp page (just to run some logging code) from an htm page.
Perhaps if I explain what I'm trying to achieve then someone can suggest a better solution:
When a search engine bot crawls my home page I want to log/email the date/time and bot details. I was thinking of doing this through some VB code on an ASP page. The bot, however, is crawling my www.mysite.com/index.htm page so I can't use server side (ASP) code on the page because it's an htm page.
Thanks
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Michael Brennan-White |
last post by:
If I submit my for using a get action the resulting page loads . If I
use a post action I get an error page saying "The page cannot be
found". I am calling the originating page!!! This happens...
|
by: Nathan |
last post by:
Hi,
I seem to having a peculiar problem with the display of odd and even
pages in XSL-FO. Here is a small background of the problem.
My xsl stylesheet mentions my fo:layout-master-set as
...
|
by: James |
last post by:
I've been to websites where if I navigate off a form, trying to get back to
it by hitting the back button gives me a page which says "Warning, page has
expired". It doesn't display the page. I've...
|
by: Kevin Phifer |
last post by:
Ok, before anyone freaks out, I have a solution I need to
create that gathers content from maybe different places.
Each one can return a <form> in the html, so its the
classic can't have more than...
|
by: John Lau |
last post by:
Hi,
Is there documentation that talks about the page lifecycle, the lifecycle of
controls on the page, and the rendering of inline code, in a single
document?
Thanks,
John
| |
by: MooreSmnith |
last post by:
When I navigate to the next page using
Response.Rediect("MyNextPage.aspx") current page Page_Load event is called.
What I may wrongly understood is that post back will happen whenever there
is any...
|
by: Lenard Gunda |
last post by:
Hi!
I have the following problem.
From my main page, when someone clicks a button, it uses client side
javascript to open another .aspx page. This page displays content, based on
what the...
|
by: Nathan |
last post by:
I have an aspx page with a data grid, some textboxes, and an update button.
This page also has one html input element with type=file (not inside the data
grid and runat=server).
The update...
|
by: Ed Jay |
last post by:
I want to use history.go() to navigate between my previously loaded pages.
I'm looking for a way to trigger a function call when a page is accessed
using history.go(). Is there an event generated?...
|
by: Mesut |
last post by:
I have written a form in with radio buttons the name is set to orderby and the value is set to KundeVorName and the next value is KundeNachName and it goes so on. I wanna modify my query according...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The...
| |
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |