Home All Groups Group Topic Archive Search About


Author
28 Feb 2005 6:26 AM
guy
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

Author
28 Feb 2005 6:58 AM
Jason Brown [MSFT]
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.

Show quote
"guy" <wildfict***@hotmail.com> wrote in message
news:%23KBMw5VHFHA.2936@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
>
Author
28 Feb 2005 7:44 AM
guy
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...?


Show quote
"Jason Brown [MSFT]" <i-brj***@online.microsoft.com> wrote in message
news:%23MftkLWHFHA.3648@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" <wildfict***@hotmail.com> wrote in message
> news:%23KBMw5VHFHA.2936@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
>>
>
>
Author
1 Mar 2005 2:26 AM
Jason Brown [MSFT]
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.
Show quote
"guy" <wildfict***@hotmail.com> wrote in message
news:e%233CqlWHFHA.3108@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-brj***@online.microsoft.com> wrote in message
> news:%23MftkLWHFHA.3648@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" <wildfict***@hotmail.com> wrote in message
>> news:%23KBMw5VHFHA.2936@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
>>>
>>
>>
>
>
Author
28 Feb 2005 9:03 AM
Evertjan.
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)
Author
28 Feb 2005 8:43 PM
guy
Works like a dream - thanks.
Show quote
:)

"Evertjan." <exjxw.hannivo***@interxnl.net> wrote in message
news:Xns960B666471AB5eejj99@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)
>
Author
28 Feb 2005 1:42 PM
Jeff Cochran
Show quote
On Mon, 28 Feb 2005 01:26:30 -0500, "guy" <wildfict***@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
Author
28 Feb 2005 8:44 PM
guy
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.


Show quote
"Jeff Cochran" <jeff.nospam@zina.com> wrote in message
news:42241f61.1162442774@msnews.microsoft.com...
> On Mon, 28 Feb 2005 01:26:30 -0500, "guy" <wildfict***@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

AddThis Social Bookmark Button