Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Write HTML title to ASP page

Status
Not open for further replies.

auger

Technical User
Oct 27, 2001
48
CA
I have a frames based page with header, contents and main frames. Links in the contents frame open pages in the main frame. I'd like to pass the contents from the main frames's HTML title <title>whatever</title> to the header frame to help keep visitors oriented. Does anyone know if this is possible? Thanks in advance.
 
I use this include file(pagetop.txt):
<HTML>
<HEAD>
<TITLE><%= pageTitle %></TITLE>
</HEAD>
<BODY BGCOLOR=#CCCCFF TEXT=#000000 LINK=#0000FF VLINK=#0000AA ALINK=#FFFF00 onLoad=&quot;timerONE=window.setTimeout('scroll(100)',500);&quot;>

<table CELLPADDING=&quot;5&quot; CELLSPACING=&quot;5&quot;>
<tr>
<td><img BORDER=&quot;2&quot; SRC=&quot;/SuperMaxSite/Images/SuperProd2.jpg&quot; WIDTH=&quot;191&quot; HEIGHT=&quot;71&quot;></td>
<td VALIGN=&quot;BOTTOM&quot;><A HREF=&quot;/SuperMaxSite/index.asp&quot;><IMG BORDER=0 SRC=&quot;/SuperMaxSite/Images/homepage.gif&quot; ALT=&quot;[Home Page]&quot;></A></TD>
<TD VALIGN=&quot;BOTTOM&quot;><A HREF=&quot;/SuperMaxSite/Pages/mail1.asp&quot;><IMG BORDER=0 SRC=&quot;/SuperMaxSite/Images/mail.gif&quot; ALT=&quot;[e-mail to SuperMax]&quot;></A></TD>
<TD VALIGN=&quot;BOTTOM&quot;><font FACE=&quot;Arial&quot;><b>Phone: 661-548-6000</b></font></TD>
<TD ><IMG BORDER=0 HEIGHT=40 WIDTH= 50 SRC=&quot;/SuperMaxSite/Images/1358872.gif&quot; ALT=&quot;[Major Credit Cards Accepted]&quot;></td>
</tr>
</table>

<HR SIZE=&quot;3&quot; COLOR=&quot;#0000FF&quot;>

... then call it like this from a page:

<%@ LANGUAGE=&quot;VBSCRIPT&quot; %>
<% DIM pagetitle
pageTitle = &quot;SuperMax Products - Registration&quot; %>
<!-- #include virtual=&quot;/ws-supermax/Pages/pagetop.txt&quot; -->
...
so I get the same stuff on each page/frame.

I have a similar include file for: pagebot.txt

Hope this helps.
 
I think that it's possible if you use a session variable.

When you know the title then define the session variable:
<% Session(&quot;Title&quot;)=&quot;theTitle&quot; %> or use a variable
<% Session(&quot;Title&quot;)=theVariable %>

and in the asp pages:

<TITLE><%=Session(&quot;Title&quot;)%></TITLE>

Olav

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top