Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old September 26th, 2003, 10:52 AM
Authorized User
 
Join Date: Sep 2003
Location: , , .
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default Frames in ASP???

Can anyone help me on how to construct frames in ASP? I know that ASP does not really use frames but I am unsure on how to actually setup a page to appear to be running in frames. Like a logo at the top and a menu on the left to be anchored down on the page and then a "HOME" frame to update when I click a link.

 
Old September 26th, 2003, 12:47 PM
Authorized User
 
Join Date: Jun 2003
Location: Manila, MNL, Philippines.
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to sidneyfuerte Send a message via AIM to sidneyfuerte Send a message via MSN to sidneyfuerte Send a message via Yahoo to sidneyfuerte
Default

I'm not sure if i understand your post correctly, if you are asking if you can display your asp pages in frames... yes you can, just create your main .html file that has two frames (top and bottom). Then on the page link in your frames call the ASP you want to use. Like this:

<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<frameset rows="80,*" frameborder="NO" border="0" framespacing="0">
  <frame src="Top.asp" name="topFrame" scrolling="NO" noresize >
  <frame src="Bottom.asp" name="mainFrame">
</frameset>
<noframes>
<body>
</body>
</noframes>
</html>


I hope this will help you :)



Thanks/Regards
Sidney
 
Old September 26th, 2003, 01:12 PM
Authorized User
 
Join Date: Sep 2003
Location: , , .
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks Sidnet. But I was very incorrect in what I was asking. I can display the ASP fields in the frame...but one page is like a login screen. Whenever I login to the screen it takes me back to the login screen. If I use the page outside of the frame it will verify my username and password and take me to a submit screen that I have set up. But inside of the frame it continues to take me back to the login screen. So I conclude that my code is right but that ASP doesn't want to run in a frame. So I was asking how to write it in ASP so that the frame isn't really a frame. I hope this makes a little more sense.

 
Old September 26th, 2003, 01:20 PM
Authorized User
 
Join Date: Jun 2003
Location: Manila, MNL, Philippines.
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to sidneyfuerte Send a message via AIM to sidneyfuerte Send a message via MSN to sidneyfuerte Send a message via Yahoo to sidneyfuerte
Default

I think you need to specify your targets in your event handlers. If your have a login event be sure to specify what frame you want to use. You can use your Frame Names as your field in TARGETS.

Thanks/Regards
Sidney
 
Old September 26th, 2003, 01:27 PM
Authorized User
 
Join Date: Sep 2003
Location: , , .
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How exactly do you to a target in a response.redirect tag?


 
Old September 28th, 2003, 11:00 AM
Authorized User
 
Join Date: Sep 2003
Location: , , .
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Okay I need a little more help on this topic then what I initially thought. I'm trying to set up a website. :) I want to make a login that I can set a session to (already done) and have it auto update pages that I have. Please view my site by going to http://www.houseofmorrigan.tk. When you get their click on the Star Wars Galaxies website. This will help people understand what I need. I have a menu on the left and a logo at the top. I want those to be constant pages that is why I set them up as frames. Now what I want to do is have the menu update when I have someone log in. I can put a generic login at the top by the logo that is no problem. But I know that asp pages don't like to run in frames so I want to know how to do this. Can anyone help me?

 
Old September 29th, 2003, 06:57 AM
Friend of Wrox
 
Join Date: Jun 2003
Location: Sydney, NSW, Australia.
Posts: 111
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You need to have some understanding of how HTML works.

Once you have verified the user, you can reload the *current* frame. Or, if you want to reload one of the other frames, you need to write out some javascript dynamically. This javascript will execute on the client and reload the appropriate frame.

Remember: ASP runs on the server. ASP knows *nothing* about the frames that are in the client browser. All ASP sees is a request for a webpage. It doesn't know anything about the other webpages in the frame that you want to reload. Only the client browser knows about these other pages. You need to tell the client browser (using client-side javascript) which other pages you also want to reload.

Cheers
Ken

www.adOpenStatic.com
 
Old September 29th, 2003, 08:14 AM
Authorized User
 
Join Date: Sep 2003
Location: , , .
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Right Ken. This I know. ASP server side, scripts are generally client side. The problem is...well I'm new to it :-). I've made a page with three frames. One has a login. When I do the login I want the rest of the page to update. Of course the items are really only going to change if the login was successful. I think my first step is just to get the login to actually go through the registration process in the frame I have for it. I can't get that to work.

 
Old September 29th, 2003, 01:17 PM
Authorized User
 
Join Date: Sep 2003
Location: , , .
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've done alot of research today. From what I was read I have just gotten confused. I put the login into frame C. When I input the login and click login it goes to a register page. The register page the verifies the account and Response.Redirect's to the Submit page or to the login page depending on if they authorized. This is where I assume my error is. As if I have it in a frame it does nothing but put me back to the login page. But if I have it out to a new window it works. Am I right in my assumption of where the error is? And how can this be fixed.





Similar Threads
Thread Thread Starter Forum Replies Last Post
display without frames in asp mahalakshmik Classic ASP Databases 1 October 6th, 2006 07:10 AM
asp.net frames and gridview ramuis78 ASP.NET 1.0 and 1.1 Basics 2 August 2nd, 2006 10:04 AM
Frames in ASP.NET knagendrak ASP.NET 1.x and 2.0 Application Design 7 September 24th, 2004 08:43 AM
I need help with Frames and Forms in ASP.NET leex Classic ASP Basics 1 August 19th, 2004 11:44 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.