473,326 Members | 2,012 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,326 software developers and data experts.

activating access hyperlink from asp

niv
i have a database, one of the fields is a hyperlink to a
htm file.
i want to activate it automaticly as the asp file is loaded
no click is needed.so that the background of the BODY part
will remain and that text will be of the htm file.
Both the background and the htm file are one record in the
database, i tried:
<BODY backgound='<%details("background")%>' HREF=<%details
("htmfile")%>'>
the background field is a text field, containing the gif
file address, and the htmfile is a hyperlink field ,
linked to the htm file. and i need to activate automaticly,
can you help me?
thanks a lot
niv
Jul 19 '05 #1
3 2818
Your question does not make sense. If you mean that the HTML page's contents
are stored in the database, then you should do:

<body style="background-color: <%=details("background")%>;">
<%=details("htmlfile")%>
</body>

If you want the current page to be *redirected* to a different URL, then you
can do:

<html>
<head>
<meta http-equiv="refresh" content="0;URL=<%=details("htmlfile")%>">
</head>
</html>

However, you can't display the current page (and set the background for the
current page), and display some other page as well...

Cheers
Ken

"niv" <av******@012.net.il> wrote in message
news:37****************************@phx.gbl...
: i have a database, one of the fields is a hyperlink to a
: htm file.
: i want to activate it automaticly as the asp file is loaded
: no click is needed.so that the background of the BODY part
: will remain and that text will be of the htm file.
: Both the background and the htm file are one record in the
: database, i tried:
: <BODY backgound='<%details("background")%>' HREF=<%details
: ("htmfile")%>'>
: the background field is a text field, containing the gif
: file address, and the htmfile is a hyperlink field ,
: linked to the htm file. and i need to activate automaticly,
: can you help me?
: thanks a lot
: niv
Jul 19 '05 #2
niv
the code line
<%=details("htmfile")%> in :

<body style="background-color: <%=details("background")%
;"> <%=details("htmlfile")%>
</body> does not activate the file which its hyperlink is
written in the "htmfile" field
how do i activate it and make it the content of the BODY
part?
pls help
tanks a lot
niv
-----Original Message-----
Your question does not make sense. If you mean that the HTML page's contentsare stored in the database, then you should do:

<body style="background-color: <%=details("background")%
;">
<%=details("htmlfile")%>
</body>

If you want the current page to be *redirected* to a different URL, then youcan do:

<html>
<head>
<meta http-equiv="refresh" content="0;URL=<% =details("htmlfile")%>"> </head>
</html>

However, you can't display the current page (and set the background for thecurrent page), and display some other page as well...

Cheers
Ken

"niv" <av******@012.net.il> wrote in message
news:37****************************@phx.gbl...
: i have a database, one of the fields is a hyperlink to a
: htm file.
: i want to activate it automaticly as the asp file is loaded: no click is needed.so that the background of the BODY part: will remain and that text will be of the htm file.
: Both the background and the htm file are one record in the: database, i tried:
: <BODY backgound='<%details("background")%>' HREF=<% details: ("htmfile")%>'>
: the background field is a text field, containing the gif
: file address, and the htmfile is a hyperlink field ,
: linked to the htm file. and i need to activate automaticly,: can you help me?
: thanks a lot
: niv
.

Jul 19 '05 #3
I'm sorry, I do not understand what "include and activate" it means. If you
mean get the content from *another*, external HTML file (which is located on
some other webserver), and include it in your current HTML page - you can't
do that like you are trying to do. Please go and read a HTML reference,
since it'll make things much clearer.

You'll need to use a server-side object to issue a HTTP request for the
remote resource, read in the remote server's response, parse out the stuff
you don't want, and Response.write() the rest to the body of the document.

Cheers
Ken

"niv" <av******@012.net.il> wrote in message
news:05****************************@phx.gbl...
: the code line
: <%=details("htmfile")%> in :
:
: <body style="background-color: <%=details("background")%
: >;">
: <%=details("htmlfile")%>
: </body> does not activate the file which its hyperlink is
: written in the "htmfile" field
: how do i activate it and make it the content of the BODY
: part?
: pls help
: tanks a lot
: niv
:
:
:
: >-----Original Message-----
: >Your question does not make sense. If you mean that the
: HTML page's contents
: >are stored in the database, then you should do:
: >
: ><body style="background-color: <%=details("background")%
: >;">
: > <%=details("htmlfile")%>
: ></body>
: >
: >If you want the current page to be *redirected* to a
: different URL, then you
: >can do:
: >
: ><html>
: > <head>
: > <meta http-equiv="refresh" content="0;URL=<%
: =details("htmlfile")%>">
: > </head>
: ></html>
: >
: >However, you can't display the current page (and set the
: background for the
: >current page), and display some other page as well...
: >
: >Cheers
: >Ken
: >
: >"niv" <av******@012.net.il> wrote in message
: >news:37****************************@phx.gbl...
: >: i have a database, one of the fields is a hyperlink to a
: >: htm file.
: >: i want to activate it automaticly as the asp file is
: loaded
: >: no click is needed.so that the background of the BODY
: part
: >: will remain and that text will be of the htm file.
: >: Both the background and the htm file are one record in
: the
: >: database, i tried:
: >: <BODY backgound='<%details("background")%>' HREF=<%
: details
: >: ("htmfile")%>'>
: >: the background field is a text field, containing the gif
: >: file address, and the htmfile is a hyperlink field ,
: >: linked to the htm file. and i need to activate
: automaticly,
: >: can you help me?
: >: thanks a lot
: >: niv
: >
: >
: >.
: >
Jul 19 '05 #4

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

Similar topics

2
by: niv | last post by:
thank you ken for not givving up. i think i dont make my self clear, what i to do is to have a web page that i can administrate its content and apperance from a database, each web page has three...
3
by: Ruskin Hardie | last post by:
Ok, I am still playing with ASP and was wondering how to do this (it seemed simple). What I want is to have a hyperlink that when it's clicked on, will run a sub routine, instead of opening a web...
4
by: Tero Partanen | last post by:
Hello! I'm writing about a rather peculiar problem I'm having with Access2000. I have a table in which I have created one hyperlink-type field. I have given the field a default value which is...
2
by: John | last post by:
I have an Access 2000 form that has a Hyperlink that opens an Excel 2000 worksheet located in the same network folder as the Access MDB. The Hyperlink works great. When users close the Excel...
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...
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...
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)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.