在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页面

解决方案 »

  1.   

    Response.Write("<script>top.banner.location.href='toptitle.aspx?user="+struser+"';</script>");
      

  2.   

    Response.Write("<script>window.location.href=toptitle.aspx?user="+struser+"';</script>");
      

  3.   

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

  4.   

    to:net_lover我main.htm是个框架页如果改成main.aspx那么我里面也就是在left框架里用src=left.aspx在banner 里使用toptitle.aspx在main里使用a.aspx页面。好象不可以吧!我以前试过总是报错。
      

  5.   

    框架页和是否是aspx或者htm没有关系。
    你要一级一级向下传递。