473,556 Members | 2,420 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

asp page from htm page

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
Jul 22 '05 #1
7 1457
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*********@ho tmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.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

Jul 22 '05 #2
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...?
"Jason Brown [MSFT]" <i-******@online.m icrosoft.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.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*********@ho tmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.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


Jul 22 '05 #3
guy wrote on 28 feb 2005 in microsoft.publi c.inetserver.as p.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.a sp"
style="width:1p x;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)

Jul 22 '05 #4
On Mon, 28 Feb 2005 01:26:30 -0500, "guy" <wi*********@ho tmail.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
Jul 22 '05 #5
guy
Works like a dream - thanks.
:)

"Evertjan." <ex************ **@interxnl.net > wrote in message
news:Xn******** ************@19 4.109.133.29...
guy wrote on 28 feb 2005 in microsoft.publi c.inetserver.as p.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.a sp"
style="width:1p x;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)

Jul 22 '05 #6
guy
I tried this on my htm page:
<img src="/myManipulations/myVBcodeinASP.a sp"
style="width:1p x;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*********@zi na.com> wrote in message
news:42******** *********@msnew s.microsoft.com ...
On Mon, 28 Feb 2005 01:26:30 -0500, "guy" <wi*********@ho tmail.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

Jul 22 '05 #7
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*********@ho tmail.com> wrote in message
news:e%******** ********@tk2msf tngp13.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.m icrosoft.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.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*********@ho tmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP15.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



Jul 22 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
4180
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 in IE as well as FireFox. This code has been tested on a Win2003 server, IIS6, PHP 5.0.3, mySQL 4.1.8 and it works fine. The problem server is...
0
2414
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 <fo:layout-master-set> <fo:simple-page-master margin-left="0.5in" margin-right="0.5in" page-width="8.5in" margin-bottom="0.5in"...
2
4329
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 been searching around trying to get this to happen for one of my aspx pages and I can't get it to expire. I've put the following HTML tags in the...
4
2794
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 one runat=server form on a asp.net page. However, I still want developers to be able to use asp.net controls to create some apps that are created...
2
3608
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
6
2941
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 server side event happens, resulting in Page_load event. Page_Load is also happening when I navigate to the next page. That means Page_load will...
1
2260
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 first page is set to show. If you change the first page, and click the button again, the newly opened page will show other things. Nothing special. It...
15
4730
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 button will verify the information that has been entered and updates the data base if the data is correct. Update will throw an exception if the data is...
8
2655
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? Is there a method for detecting what page the user came from when a page is accessed using history.go()? -- Ed Jay (remove M to respond by...
3
2323
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 this values. It works well for the first page but at the second it looses its value and gives me an error message. When i hard code it like "Select *...
0
7547
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7825
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8060
jinu1996
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7588
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7904
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5452
isladogs
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3596
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3575
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2037
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 we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.