473,289 Members | 1,840 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,289 software developers and data experts.

<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="VBScript" %>
<% Option Explicit
Const cASP = "Page.asp"
Const cURL = "http://www.google.com/"
Response.Redirect(cURL)
%>

Thanks in advance for any information.
Dec 28 '05 #1
2 6768
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="VBScript" %>
<% Option Explicit
Const cASP = "Page.asp"
Const cURL = "http://www.google.com/"
Response.Redirect(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="VBScript" %>
<%
Option Explicit
Const cASP = "Page.asp"
Const cURL = "http://www.google.com/"
Response.Write "<script>location.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="VBScript" %>
<% Option Explicit
Const cASP = "Page.asp"
Const cURL = "http://www.google.com/"
Response.Redirect(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
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...
9
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">...
15
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:...
1
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,...
3
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...
0
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)....
1
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...
3
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"...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.