(1)  我想 按下一个botton,打开一个新的页面应该怎么写语句呢??我只会 me.server.transfer() 关闭当前页面打开新的页面(2)还有我如果想传递一个数据给在一个框架集里面的页面应该怎么做例如 me.server.transfer("frameset.htm?name=" & tb_name.text)而 我的frame_top页面要获得这个数据,它是属于frameset里面的我应该怎么做啊??
请问有什么数据参考vb .net 编写 asp.net的程序嘛?我现在很迷茫啊,在做毕业设计,请哪位能指点我一番,感激不尽啊!

解决方案 »

  1.   

    response.write("<script>window.open('url','_blank')</script>")
      

  2.   

    在那个页面里写
    dim namestr as string
    namestr=request.querystring("name")
      

  3.   

    把你的框架页面代码给出来。。,我这里给你个简单的参考一下。
    <html>
    <head>
    <title>管理后台</title>
    <meta http-equiv="pragma" content="no-cache">
    </head>
    <frameset framespacing="0" border="false" cols="180,*" frameborder="0">
    <frame name="left" scrolling="auto" marginwidth="0" marginheight="0" src="a.html">
    <FRAMESET ROWS="20,*" FRAMEBORDER="NO" BORDER="0" FRAMESPACING="0" COLS="*">
    <FRAME NAME="topFrame" SCROLLING="NO" noresize SRC="">
    <frame name="right" scrolling="auto" src="b.html">
    </FRAMESET>
    </frameset>
    <noframes>
    <b>您的浏览器不支持框架</b>
    </noframes>
    </html>
    以上是test.html
    ======================
    下面这个是a.html代码如下:
    <html>
    <head>
    <title>a</title>
    </head>
    <body>
    <form id="ffff" method="post">
    你好啊。阿法
    <input type="button" OnClick="javascript:f();">
    </form>
    <script language="javascript">
    function f()
    {
     window.parent.right.location='c.html';
    }
    </script>
    </body>
    </html>
    你自己看看,就这样挺简单的。b.html和c.html不给出代码了,随便写几个字,只是测试,反正能够实现你的要求就是了。。基本就是这样
      

  4.   

    现在用 session 传递了,很便捷