|
|
|
|
![]() |
|
Return To Home Page
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>

ASP
(Active Server Pages) is a technology developed by Microsoft. Pages using ASP
are primarily developed in JScript, or VBScript and are integrated into the
HTML of your Web pages. The ASP code is compiled on-the-fly by the server and
the resulting output is standard HTML. By using ASP, Web pages can be dynamic,
full of ever-changing content, and browser independent.
|
|
|
|
|
![]() |
|