<frameset cols="218,74%">
<frame name="contents" scrolling="no" noresize marginwidth="0" marginheight="0" src="1.aspx" target="main"> //指向另一页面
<frame name="main" scrolling="no" noresize marginwidth="0" marginheight="0" src="2.aspx>
</frameset>
点击按钮后的事件
Response.Redirect("<a herf=2.aspx?id=1>button</a>");
2.aspx中用request("id")接收

解决方案 »

  1.   

    直接写“button”还是写按钮的名称;
      

  2.   

    简单的方法
    <frameset cols="218,74%">
    <frame name="contents" scrolling="no" noresize marginwidth="0" marginheight="0" src="1.aspx?这里写要传递的参数和数据就下同">
    <frame name="main" scrolling="no" noresize marginwidth="0" marginheight="0" src="2.aspx>
    </frameset>
    这样就可以在1.aspx和2。aspx上面接受数据了
      

  3.   

    可以是按钮,也可以是hyperlink控件等其它的
      

  4.   

    session("message")="your args"in button_click(...):
    dim strid as stringstrid = ctype(session("message"),string)
    ...'do your things
      

  5.   

    1.思归
    private void Button1_Click(object sender, System.EventArgs e)
    {
    Response.Redirect("<script language=javascript>parent.frames['右边的框架Name'].location.href='xxx.aspx';</" + "script>");
    }2. fengyun6(風雲) 
    private void Button1_Click(object sender, System.EventArgs e)
    {
    Response.Redirect("<script language=javascript>parent.frames['Right.aspx'].location.href='xxx.aspx';</script>");
    }3.warfen(菜鸟) 
    我近期经常用到这个.比如有两个框架,<iframe frameborder="no" scrolling="auto" width="25%" name="left" src="left.aspx" height="100%"></iframe> ; <iframe frameborder="no" scrolling="auto" width="75%" name="right" src="right.aspx" height="100%"></iframe>.关键是要给框架命名.现在在name="left"的框架中有一个叫left.aspx的文件,其中有一个链接,比如<a href="xxx.aspx" target="right">链接一</a>,这样就能点击左边的页面,在右边显示xxx.aspx.关键是设置"target=".其实不需要服务器控件,如果你要用,可以用hyperlink或linkbutton这两个控件都有targer属性,设置好就行了.4. cnhgj(戏子.Com?俺真TMD够菜)
    Response.Write("<Script>parent.RightFrame.location.href='xxx.aspx';</Script>");5. net_lover(孟子E章) 
    Response.Write("<Script>window.open('xxx.aspx','RightFrame')</Script>");6. hiaming(阿明) 上面说的都可以的,关键在你的右框架名字是不是对应代码中的名字
    如:
    warfen(菜鸟) 
    我近期经常用到这个.比如有两个框架,<iframe frameborder="no" scrolling="auto" width="25%" name="left" src="left.aspx" height="100%"></iframe> ; <iframe frameborder="no" scrolling="auto" width="75%" name="right" src="right.aspx" height="100%"></iframe>.关键是要给框架命名.现在在name="left"的框架中有一个叫left.aspx的文件,其中有一个链接,比如<a href="xxx.aspx" target="right">链接一</a>,这样就能点击左边的页面,在右边显示xxx.aspx.关键是设置"target=".其实不需要服务器控件,如果你要用,可以用hyperlink或linkbutton这两个控件都有targer属性,设置好就行了.name="right"
    ^^^^^^^^^^^^^^这个name的值就是它的名字,你在hyperlink控件中设置
    target="right"就行了,还有要注意的事你的多框架页面中不能有同名的框架