Print Page | Close Window

iframes

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=15951
Printed Date: 30 March 2026 at 6:55am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: iframes
Posted By: Paramount X
Subject: iframes
Date Posted: 22 July 2005 at 6:25pm

Hello. I am doing a prject.  I want to make a forum portal using Iframe..  I took the nav bar out of the forum and put it out side . But how do i get it to regster that i loged in the forum




Replies:
Posted By: dpyers
Date Posted: 23 July 2005 at 12:55am
Frames screw up cookies so I don't think you'r going to be able to do what you want without a lot of coding.

-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: Paramount X
Date Posted: 23 July 2005 at 1:14am
Lol, i know but i take the risk. I have anotyher question I tried do the target but it wont work. I can't add a iframe name to a .asp file cause it would mess up the code. How do I name a .asp file


Posted By: dpyers
Date Posted: 23 July 2005 at 2:42am
You can mix asp and html in the same file as long as it has a .asp extension.

Example:
Create two files. Name one mainpage.asp and the other iframe_content.htm then put the following code into the respective files , save both and then run mainpage.asp.

iframe_content.htm
Quote <html>

<head>
    <meta http-equiv="Content-Language" content="en-us">
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Iframe Content</title>
</head>

<body bgcolor="#FFFF00">

<div align="center">This is an html page that goes into the iframe.</div>
<div align="center">It could also be an asp page</div>

</body>

</html>


mainpage.asp
Quote <html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
    <title>Main Page</title>
</head>

<body bgcolor="#000080">
    <div align="center">
        <% Response.write "<p style=""color:#FFFFFF;"">This is an asp page that contains an Iframe</p>"    %>
    </div>
   
    <div align="center">
        <iframe name="Iframe1" src="iframe_content.htm"> Your browser does not support inline frames.</iframe>
    </div>
</body>

</html>


Not how the text in mainpage.asp is written with asp but the rest of the page is straight html.


-------------

Lead me not into temptation... I know the short cut, follow me.



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net