给另一个IFRAME取个名字,如myframe,然后在你的链接里指定target是myframe就可以了

解决方案 »

  1.   

    Page.Response.Redirect是在当前窗口找开地址
      

  2.   

    Page类是不管理在哪个iframe显示的,它只是最终生成HTML,
    你应当在客户端控制iframe的url
      

  3.   

    to:kanshangren(槛上人)
    如何在链接里指定target是myframe
      

  4.   

    Page.Response.Redirect("fenxi_xi.aspx?id = "+ ls_code);改成下面这样试试Page.Response.Write("<script>parent.document.all.frame_b.src=fenxi_xi.aspx?id ="ls_code"+</script>");* frame_b是你的frame(b)的名字
      

  5.   

    to azev(阿则) 还是不行,说语法错误
      

  6.   

    什么语法错误,贴出来看看我觉得azev(阿则) 是没有问题的
      

  7.   

    Page.Response.Write("<script>parent.document.all.frame_b.src=fenxi_xi.aspx?id ="+ls_code+"</script>");
      

  8.   

    to:azev(阿则) 我就是用你这句语法的 Page.Response.Write("<script>parent.document.all.frame_b.src=fenxi_xi.aspx?id ="+ls_code+"</script>");可抱错,说缺少":"我不知道少什么:
      

  9.   

    不要用reoponse.redirect
    用超连接
      

  10.   

    <a href="WebForm2.aspx" target="Frame2name" />
      

  11.   

    不好意思 改了几下.:-)
    Response.Write("<script>parent.document.all.frame_b.src='fenxi_xi.aspx?id ="+ls_code+"';</script>");
    *不过还有个奇怪问题就是frame_b中载入的aspx页面没有发生page_load事件
      

  12.   

    page_load 发生了 是我刚才测试的问题