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.
|