473,399 Members | 3,919 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,399 software developers and data experts.

activating a hyperlink

niv
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 (in the <BODY> section, that is easy to
achive :
<BODY background='<%details(backgoung"%> > (details is
the recordset object)
the second field is the marquee, and this i get by:
<MARQUEE> <%=details("marquee")%> </MARQUEE>
here comes the problem...
i also want that the content of the web page, the 'story'
that i want to tell to readers will be a .htm file, that
its url will be stored in the third field of the record
(the same as the gif/bmp file), but i didn't manage to do
it, if i use response.write then the background is lost,
and the url is written.
if i use :
<BODY background='<%details(backgoung"%> >
<%=details("htmfile")%>
</body>
than, what i get on the web page is the url of the .htm
file as written in the database field. and not its content,
so what will be the solution for me??
how do i have to define the record field, as a text or
hyperlink, and how do i activate it from the code (asp)?
thank you a lot ken for your time and dont give up on me
niv
Jul 19 '05 #1
2 2429
If the .htm file is stored on your local machine, you can use the File
System Object (FSO) to open the file, read in the contents, and
Response.Write() it as part of the body of the calling page.

If the .htm page is on a remote server, you'll need to do what I said
before.

Cheers
Ken

"niv" <av******@012.net.il> wrote in message
news:05****************************@phx.gbl...
: 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 (in the <BODY> section, that is easy to
: achive :
: <BODY background='<%details(backgoung"%> > (details is
: the recordset object)
: the second field is the marquee, and this i get by:
: <MARQUEE> <%=details("marquee")%> </MARQUEE>
: here comes the problem...
: i also want that the content of the web page, the 'story'
: that i want to tell to readers will be a .htm file, that
: its url will be stored in the third field of the record
: (the same as the gif/bmp file), but i didn't manage to do
: it, if i use response.write then the background is lost,
: and the url is written.
: if i use :
: <BODY background='<%details(backgoung"%> >
: <%=details("htmfile")%>
: </body>
: than, what i get on the web page is the url of the .htm
: file as written in the database field. and not its content,
: so what will be the solution for me??
: how do i have to define the record field, as a text or
: hyperlink, and how do i activate it from the code (asp)?
: thank you a lot ken for your time and dont give up on me
: niv
Jul 19 '05 #2
niv

THANK YOU KEN
again and again
niv

-----Original Message-----
If the .htm file is stored on your local machine, you can use the FileSystem Object (FSO) to open the file, read in the contents, andResponse.Write() it as part of the body of the calling page.
If the .htm page is on a remote server, you'll need to do what I saidbefore.

Cheers
Ken

"niv" <av******@012.net.il> wrote in message
news:05****************************@phx.gbl...
: 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 (in the <BODY> section, that is easy to
: achive :
: <BODY background='<%details(backgoung"%> > (details is
: the recordset object)
: the second field is the marquee, and this i get by:
: <MARQUEE> <%=details("marquee")%> </MARQUEE>
: here comes the problem...
: i also want that the content of the web page, the 'story': that i want to tell to readers will be a .htm file, that
: its url will be stored in the third field of the record
: (the same as the gif/bmp file), but i didn't manage to do: it, if i use response.write then the background is lost,
: and the url is written.
: if i use :
: <BODY background='<%details(backgoung"%> >
: <%=details("htmfile")%>
: </body>
: than, what i get on the web page is the url of the .htm
: file as written in the database field. and not its content,: so what will be the solution for me??
: how do i have to define the record field, as a text or
: hyperlink, and how do i activate it from the code (asp)?
: thank you a lot ken for your time and dont give up on me
: niv
.

Jul 19 '05 #3

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

Similar topics

3
by: niv | last post by:
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...
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...
1
by: Jeppe 1971 | last post by:
Hi Does anyone know of a way to load a HTML-page and examine the document without activating the code? I am trying to create a search-function in javascript. The idea is that the function...
1
by: Badboy36 | last post by:
Hello user from googlegroups, i made a microsoft access database with front and backend. i created the backend in microsoft access97. for the frontend i made two versions (one for microsoft...
0
by: Ryan Harvey | last post by:
Hi all, I have written a web user control that contains a repeater control. the ItemTemplate for this control is basically 6 Hyperlinks in a row, that are dynamically allocated one of 7 gif...
5
by: Martin Dew | last post by:
Having some problems getting a hyperlink object to work in my repeater control, It displays the text I have asked it to for the hyperlink, but it does not act as a link. My repeater code is below...
10
by: david | last post by:
Hi, all: I need a help from you about DataGrid control. I created a DataGrid, dg, in design view of .NET visual Stadio and use the builder to add a Hyperlink column to dg. I want to try to assign...
8
by: Nathan Sokalski | last post by:
I have several System.Web.UI.WebControls.HyperLink Controls which I want to display as rollover images. I know how to make these manually using the <a> and <img> tags or the <a> tag and a...
20
by: tshad | last post by:
I had posted this problem earlier and just noticed that the Hyperlink is the problem. Apparently, it doesn't figure out the path correctly. It uses the path of the file it is in, even if it is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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,...
0
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...
0
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,...
0
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...
0
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...

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.