分为上下页面,我在成功登入后,根据不同的值,来定位下半部分的页面的URL,如何做到呢?在服务器端代码中不能写入代码来取吧?用parent.src='index.aspx'得不到。

解决方案 »

  1.   

    提点思路(本人对js不了解)你可以在前台页面里控制ifrem的height 来控制它的显示和隐藏吧
      

  2.   

    在后台写HTML代码:
    例子
    Response.ContentType = "text/HTML";
    Response.Write(" <frameset rows=\"36,82%\" border=\"0\" frameSpacing=\"0\" frameBorder=\"0\">");
    Response.Write("<frame name=\"top\" src=\"top.aspx\" noResize scrolling=\"no\">");
    Response.Write("<frame name=\"bottom\" src=\"bottom.aspx\">");
    Response.Write("</frameset>");根据条件做就行了,
      

  3.   

    在登入页面用Response.Redirect("Dynamicframe.aspx?url=footer.aspx");Dynamicframe.aspx接收从上一个页面传过来的下半部分页面的URL值 
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <title>无标题文档</title>
    </head><frameset rows="80,*" frameborder="no" border="0" framespacing="0">
      <frame src="head.aspx" name="topFrame" scrolling="No" noresize="noresize" id="topFrame" title="topFrame" />
      <frame src="<% = Request.QueryString("url")%>" name="mainFrame" id="mainFrame" title="mainFrame" />
    </frameset>
    <noframes><body>
    </body>
    </noframes></html>
    ----------------------------------------------------------------
    www.cndigs.com掘客园--发掘、推荐软件开发资源,分享、交流技术开发心得
    asp.net2.0资料
    http://www.cndigs.com/search.php?search=asp.net%202.0&tag=true
    asp.net资料
    http://www.cndigs.com/search.php?search=asp.net&tag=true
    ajax资料
    http://www.cndigs.com/search.php?search=ajax&tag=true