473,804 Members | 3,672 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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='<%de tails("backgrou nd")%>' 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 2836
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="backgrou nd-color: <%=details("bac kground")%>;">
<%=details("htm lfile")%>
</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("htm lfile")%>">
</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.n et.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='<%de tails("backgrou nd")%>' 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("htm file")%> in :

<body style="backgrou nd-color: <%=details("bac kground")%
;"> <%=details("htm lfile")%>
</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="backgrou nd-color: <%=details("bac kground")%
;">
<%=details("htm lfile")%>
</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("htmlf ile")%>"> </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.n et.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='<%de tails("backgrou nd")%>' 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.n et.il> wrote in message
news:05******** *************** *****@phx.gbl.. .
: the code line
: <%=details("htm file")%> in :
:
: <body style="backgrou nd-color: <%=details("bac kground")%
: >;">
: <%=details("htm lfile")%>
: </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="backgrou nd-color: <%=details("bac kground")%
: >;">
: > <%=details("htm lfile")%>
: ></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("htmlf ile")%>">
: > </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.n et.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='<%de tails("backgrou nd")%>' 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
2446
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 'things' that i can control using the database, and in the data base each record holds these 3 'things'. a record has 3 fields, the first one is a text field, and it holds the the url to the bmp/gif file that i use as a background of the webpage...
3
1595
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 page... Right now I have; Sub CreateLinks() Response.Write "<br><br>" Response.Write "<a href='OpenAllOrders()'>1. All Orders</a><br>" Response.Write "<a href='OpenCustOrders()'>2. Customer Orders</a><br>" Response.Write "<a...
4
7467
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 an email-address. The default value is (for example): "mailto:mymail@here.com". Access2000 correctly inserts that information into the field everytime
2
4957
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 File, they must choose the correct open Access form on the Windows Desktop Taskbar to return to the Access form that had the Hyperlink. Is there a way to:
0
9704
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
10319
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
10303
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
9132
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6845
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5508
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...
1
4282
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
3803
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2978
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.