在default.aspx里有个登陆框当 用户名 密码输入正确跳到main.htm这个页面。
default.aspx
string struser=TextBox1.Text.Trim();
if(dr.Read())
{
Response.Write("<script language='javascript'>window.open('main.htm','null','width=778,height=600');</script>");
Response.Write("<script language='javascript'>top.left.location.href='DlMenu.htm';</script>");
Response.Write("<script>top.banner.location.href='toptitle.aspx?user='"+struser+"'';</script>");
myconn.Close();
}main.htm
<frameset rows="95,*">
<frame name="banner" id="banner" src="toptitle.aspx" noResize scrolling="no">
<frameset cols="135,*">
<frame name="left" id="left" scrolling="no">
<frame name="main" borderColor="buttonface" frameBorder="no" scrolling="auto">
</frameset>
<noframes>我在toptitle.aspx里
string ss=Request["user"].ToString();
可是得不到值,在left也不显示DlMenu.htm页面
default.aspx
string struser=TextBox1.Text.Trim();
if(dr.Read())
{
Response.Write("<script language='javascript'>window.open('main.htm','null','width=778,height=600');</script>");
Response.Write("<script language='javascript'>top.left.location.href='DlMenu.htm';</script>");
Response.Write("<script>top.banner.location.href='toptitle.aspx?user='"+struser+"'';</script>");
myconn.Close();
}main.htm
<frameset rows="95,*">
<frame name="banner" id="banner" src="toptitle.aspx" noResize scrolling="no">
<frameset cols="135,*">
<frame name="left" id="left" scrolling="no">
<frame name="main" borderColor="buttonface" frameBorder="no" scrolling="auto">
</frameset>
<noframes>我在toptitle.aspx里
string ss=Request["user"].ToString();
可是得不到值,在left也不显示DlMenu.htm页面
string struser=TextBox1.Text.Trim();
if(dr.Read())
{
Response.Write("<script language='javascript'>window.open('main.aspx?user="+struser+"','null','width=778,height=600');</script>");
}
myconn.Close();main.aspx
<frameset rows="95,*">
<frame name="banner" id="banner" src="toptitle.aspx?user=<%=Request.QueryString["user"].ToString()%>" noResize scrolling="no">
<frameset cols="135,*">
<frame name="left" id="left" scrolling="no">
<frame name="main" borderColor="buttonface" frameBorder="no" scrolling="auto">
</frameset>
<noframes>
你要一级一级向下传递。