Link to home
Start Free TrialLog in
Avatar of Aleks
AleksFlag for United States of America

asked on

Use div or includes on ASP classic instead of a frameset

I currently use a framset for my website. (Code below)

<frameset rows="80,*,20" cols="*" framespacing="0" frameborder="no" border="0">
  <frame src="topframe.asp" name="top" scrolling="no" noresize="noresize" id="top" />
  <frame src="index.asp" name="Body" id="Body" />
<frame src="UntitledFrame-6"></frameset>

in this particular case a top frame and the main frame just below.

I want to get rid of the frames and include 'topframe.asp' at the top of the page on every page of my website. How can I do this ?

I am using classic ASP. I am able to do this using PHP but my whole system is Classic ASP at this point. Frames are very limiting so I want to try and use some sort of code to include the file at the top. If it changes the change should reflect system wide. As it does when I change the top frame.

So .. the bottom frame (index.asp)  should include 'topframe.asp' . Once I figure out how to do this in this specific page I can add the include code to all the pages in my system  that need to display the top frame.  :)
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Use the following.

<!-- #include file = "topframe.asp" -->
Avatar of Aleks

ASKER

How will the page know where to put the page and how much space to take ?
Avatar of Aleks

ASKER

Thanks !
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Aleks

ASKER

Yep, I noticed. Works like a charm, thank you  !
Avatar of Aleks

ASKER

:)
You are welcome.