我想在一个web窗体的button事件中,实现调用一个新页面的功能,即点击button,新出来一个指点的页面,原有页面还在,呵呵,我是用vb编的,请各位帮帮忙,指点一下

解决方案 »

  1.   

    Page_LoadyourButton.Attributes.Add("onclick","window.open(.......)");
      

  2.   

    没有试出来啊,能详细一点么,我必须在button事件中调用新窗体
      

  3.   

    在html代码head里面写
    <script>
    function shownew()
    {
      window.open('xx.aspx','targetName')
    }
    </script>
    <asp:Button id="Button1" runat="server" onclick="shownew()" Text="Button"></asp:Button>
      

  4.   

    Response.Write("<script>window.open('xx.aspx','targetName')</script>");
      

  5.   

    赞同 jan1010(~~~房价TMD的真贵啊~~~)
      

  6.   

    <script>
    function shownew()
    {
      window.open('xx.aspx','targetName')
    }
    </script>
    <input type="button" id="Button1" onclick="shownew()" Text="Button">
    不用后台代码