Home | Advertising Info11 USERS CURRENTLY ONLINE   
PowerASP
   Site Search Contact Us Saturday, May 04, 2024  

  Active InfoActive Info  Display List of Info MembersMemberlist  Search The InfoSearch  HelpHelp
  RegisterRegister  LoginLogin
Classic ASP - Advanced
 PowerASP Code Help Area : Classic ASP - Advanced
Subject Info: Using ASP to dynamically change the conte A d d  -  P o s tAdd P o s t
Author
Message << Prev Info | Next Info >>
cwilliams
Admin Group
Admin Group
Avatar

Joined: April/26/2004
Location: United States
Online Status: Offline
Info: 137
Added: April/27/2004 at 8:09pm | IP Logged Quote cwilliams

Using ASP to dynamically change the contents of a frameset

Here is an example if you wanted to load different pages into your frameset. This will give you the basic idea and then you will be able to adapt this to many situations.


Lets say your frameset page was default.asp

You can feed it different variables for what pages you want it to intially
load like so

default.asp?PAGE1=loginmenu.asp&PAGE2=whatever.asp

 

Below is the code for the page with frameset info

And lastly make sure you make the frameset page an "ASP" page or none of this will work.


<%@ LANGUAGE="VBSCRIPT" %>
<% PAGE1 = REQUEST.QUERYSTRING("PAGE1 ") %>
<% If PAGE1 = "" Then %>
<% PAGE1 = "StandardPage1.asp" %>
<% End If %>

<% PAGE2 = REQUEST.QUERYSTRING("PAGE2 ") %>
<% If PAGE2 = "" Then %>
<% PAGE2 = "StandardPage2.asp" %>
<% End If %>


<html>

<head>
<title></title>
</head>

<frameset rows="71,*">
  <frame name="top" scrolling="no" noresize target="main" src="<% =PAGE1%>">
  <frame name="main" src="<% =PAGE2 %>" scrolling="auto">
</frameset>
</html>



Edited by cwilliams on April/27/2004 at 8:21pm


__________________


Chris Williams
http://www.PowerASP.com
Back to Top View cwilliams's Profile Search for other info by cwilliams
 

If you wish to make a comment to this info you must first login
If you are not already registered you must first register

  A d d  -  P o s tAdd P o s t
Printable version Printable version

Info Jump
You cannot add new info in this area
You cannot add to info in this area
You cannot delete your info in this area
You cannot edit your info in this area
You cannot create polls in this area
You cannot vote in polls in this area

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright © 1998 - 2024 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages help tutorial how to ASP Help ASP Tutorials ASP Programming ASP Code - ASP Free CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspprotect.com, www.cjwsoft.com,www.aspclassifieds.com,www.aspphotogallery.com