473,769 Members | 7,650 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

<img src="page.asp">

If I have a Web page invoked via http://myDomain.com/What.htm
that references an ASP page via the <img> tag's "src=" like this:

<html>
<head>
<title>Page.htm </title>
</head>
<body>
<img src="http://myDomain.com/Page.asp"
border="0" width="0" height="0" alt="">
</body>
</html>

I know I can have the ASP add an entry to a log file, etc.

But can I have it affect what is displayed in the browser?
(And I don't mean showing an image.)

The following does not work:

<%@ Language="VBScr ipt" %>
<% Option Explicit
Const cASP = "Page.asp"
Const cURL = "http://www.google.com/"
Response.Redire ct(cURL)
%>

Thanks in advance for any information.
Dec 28 '05 #1
2 6807
with an img tag nope..
with an iframe to the asp page sure you could show something on the htm
page..

pretty much everything supports it nowadays too

not sure if its anything you want to do just a suggestion
"McKirahan" <Ne**@McKirahan .com> wrote in message
news:JZ******** *************** *******@comcast .com...
If I have a Web page invoked via http://myDomain.com/What.htm
that references an ASP page via the <img> tag's "src=" like this:

<html>
<head>
<title>Page.htm </title>
</head>
<body>
<img src="http://myDomain.com/Page.asp"
border="0" width="0" height="0" alt="">
</body>
</html>

I know I can have the ASP add an entry to a log file, etc.

But can I have it affect what is displayed in the browser?
(And I don't mean showing an image.)

The following does not work:

<%@ Language="VBScr ipt" %>
<% Option Explicit
Const cASP = "Page.asp"
Const cURL = "http://www.google.com/"
Response.Redire ct(cURL)
%>

Thanks in advance for any information.

Dec 28 '05 #2
You need to either map the HTML file to work as ASP files, or use client
side <script tags/code in the ASP file.

'// page.asp
<%@ Language="VBScr ipt" %>
<%
Option Explicit
Const cASP = "Page.asp"
Const cURL = "http://www.google.com/"
Response.Write "<script>locati on.href='" & cURL & "';</script>"
%>

Example:
http://mysteryfcm.plus.com/misc/pgClientRedir.asp

Code:
http://mysteryfcm.plus.com/misc/pgClientRedir.asp?s=1

--
Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!

"McKirahan" <Ne**@McKirahan .com> wrote in message
news:JZ******** *************** *******@comcast .com...
If I have a Web page invoked via http://myDomain.com/What.htm
that references an ASP page via the <img> tag's "src=" like this:

<html>
<head>
<title>Page.htm </title>
</head>
<body>
<img src="http://myDomain.com/Page.asp"
border="0" width="0" height="0" alt="">
</body>
</html>

I know I can have the ASP add an entry to a log file, etc.

But can I have it affect what is displayed in the browser?
(And I don't mean showing an image.)

The following does not work:

<%@ Language="VBScr ipt" %>
<% Option Explicit
Const cASP = "Page.asp"
Const cURL = "http://www.google.com/"
Response.Redire ct(cURL)
%>

Thanks in advance for any information.

Dec 28 '05 #3

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

Similar topics

8
3006
by: Eric Bragas | last post by:
What is this? <img src="{$ ImagesDir}/photo.gif"> I KNOW what an HTML image tag looks like. But what do you call that in the file source? Is it like a virtual directory in IIS? It's some type of variable obviously, but can somebody tell me what it's called so I can research how it works? thanks.
9
13426
by: David D. | last post by:
Does the file extension matter when including a JavaScript file in an HTML page? Normally, one would include a JavaScript file in an HTML page using <script src="foo.JS" type="text/javascript"> However, I have found that I can use an alternate file extension, such as <script src="foo.HTML" type="text/javascript"> It works fine with my IE 6 and Mozilla. Will it work with other browsers?
15
122150
by: Gérard Talbot | last post by:
Hello all, I'd like to know and understand the difference between, say, <img src="/ImageFilename.png" width="123" height="456" alt=""> and <img src="/ImageFilename.png" style="width: 123px; height: 456px;" alt="">
1
2846
by: Michael Stock | last post by:
Hi all, hopefully someone can tell me how to do this for a web server in C#: We have images in a folder you can't access over the net. So everytime we need to display an image from this folder, we need to us the following syntax: <img src="viewImage.aspx?imageID=/secretImages/image.jpg" border="0">
3
4563
by: Carpe Diem | last post by:
Hello I have an aspx page that loses Session("user") value after a few minutes even after I set <sessionState mode="InProc" cookieless="false" timeout="300"> in web.config and wrote function Session_Start() { Session.Timeout = 3000; } in global.asax
0
1338
by: Henri | last post by:
Hi, I've built a custom control named Tree in MyNameSpace.Tree compiled into dans MyNameSpace.Tree.dll I've then designed a page index.asp with its code in index.aspx.vb (class PageIndex). This page registrers my Tree control: <%@ Register TagPrefix="km" NameSpace="MyNameSpace" Assembly="tree.dll" %> Everything runs well when I compile aspx.vb myself without specifying any
1
8739
by: lwhitb1 | last post by:
I have been trying to load a javascript function from the body onload html tag, but I only want the function to load the first time the page is loaded: I have investigated but haven't found anything that works.. I thought about cookies, but what if the user's disable them? My code: //I want to call the Toggle function below only on the 1st time the page is loaded:
3
7843
by: joe | last post by:
Is it OK to have multiple: <script type="text/javascript" src="funcs1.js"></script> <script type="text/javascript" src="funcs2.js"></script> <script type="text/javascript" src="funcs3.js"></script> ? And I need to use similarly multiple CSS:
0
9589
marktang
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
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 synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10214
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10048
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 captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9996
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 most users, this new feature is actually very convenient. If you want to control the update process,...
0
5304
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3963
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
2
3563
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.