Wrox Programmer Forums
|
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic 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 November 19th, 2005, 09:03 AM
Authorized User
 
Join Date: Nov 2005
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to x_ray
Default help with framesets

hello everyone.
i need help on redirecting asp pages to a frame.in the first frameset i have a frame for the welcome page, then in the second frame i have another frameset containing 2 frames,navigation and main frame.then a third frame(in the first frameset)containg the footer page. the problem is that the footer page,footer.asp is only executing html contents.also when i log in(login.htm in main frame)i must go to a login.asp page which must redirect to another page depending on the log in.the problem is that i am only seeing the background color(which is only html)and not being redirected anywhere.here is some code:
//framesets

<frameset rows="100,300,*" border="0" frameborder="0">
<frame name="Welcome" src="mainset.htm" scrolling="no"/>
<frameset cols="110,*" border="0" frameborder="0">
<frame name="leftframe" src="menu.htm" scrolling="no" />
<frame name="main" src="login.htm" />
</frameset>
<frame name="footer" src="footer.asp" scrolling="no" />
</frameset>

//login.htm
//deleted some valdation code

<table width="50%" align="center">
<tr><td><form name="SignIn" action="login.asp" method="post" onSubmit="validate()">
  <table align="center" border="0" width="50%" >
   <tr>
   <td><label>User Name: </label></td>
    <td><input type="text" name="username"/></td>
    </tr>
    <br/>
    <tr><td><label>Password : </label></td>
    <td>
    <input type="password" name="password"/>
       </td>
    </tr>
    <tr><td></td>
    <td><input type="submit" value="Log In"></td></tr>
  </table>
  </form>
  </td></tr></table>
//login.asp
//also deleted connection setting and sql
if (!recordset.EOF)
     {Session("Authorized")=true;
     Session("currentuser")= recordset("username");
     Response.Redirect("securepage.asp");
      }
else Response.Redirect("otherpage.asp");

can anybody tell me if there is way to force the page to redirect to the specific frame, i would appreciate this a lot as i am new to this.
 
Old December 7th, 2005, 08:28 AM
Authorized User
 
Join Date: Nov 2005
Posts: 87
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to x_ray
Default

this is a reminder to the post. help






Similar Threads
Thread Thread Starter Forum Replies Last Post
using Framesets with ASP jankowja Classic ASP Basics 3 December 7th, 2005 08:06 AM
Again help with framesets x_ray Classic ASP Basics 0 November 25th, 2005 03:11 PM





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