Wrox Programmer Forums
|
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 November 23rd, 2005, 04:13 PM
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 framsets

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.











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