本帖最后由 text0001 于 2011-10-11 15:30:36 编辑

解决方案 »

  1.   

    你的目的是不是点击button(关闭当前窗口或者不关闭),再弹出一个新窗口?
    直接window.open("outputresources.aspx","width=...")不就行了么?
      

  2.   


    <asp:Button ID="BTBatchOut" runat="server" Text="批量出库" 
                        onclick="BTBatchOut_Click" 
                        PostBackUrl="window.open('~/DepotPage/OutputResources.aspx','','width=1000')" />
    不行噢  僧哥~
      

  3.   


    protected void BTBatchOut_Click(object sender, EventArgs e)
        {
    Response.Write("<script>window.open('UpLoadFile.aspx','','Scrollbars=yes,Toolbar=no,Location=no,Direction=no,Resizeable=no,width=800,Height=600,top=50,left=120')</script>");
        }
      

  4.   


    不要教小朋友用response.write弹JS OK?
      

  5.   

    <asp:Button ID="BTBatchOut" runat="server" Text="批量出库" OnClick="BTBatchOut_Click"  />        protected void BTBatchOut_Click(object sender, EventArgs e)
            {
                ClientScript.RegisterStartupScript(GetType(), "", "<script>window.open('全选.aspx','','Scrollbars=yes,Toolbar=no,Location=no,Direction=no,Resizeable=no,width=800,Height=600,top=50,left=120')</script>");
            }还有就是有些浏览器(比如谷歌)会阻止弹出的,你要设置下。
      

  6.   

    影响到 我  另一个页面的 值 接收了噢    
    string GetRMID ="";
    GetRMID = Request.Form["selectID[]"].ToString();
      

  7.   

    <asp:Button ID="BTBatchOut" runat="server" Text="批量出库" 
                        onclientclick="window.open('~/DepotPage/OutputResources.aspx','','width=1000')" />回传数据不知道你是要怎么回传,可以在OutputResources.aspx中对父窗口进行写值。
      

  8.   

    但是 需要通过 Postbackurl传值给outputResource.aspx
      

  9.   

    能不能 通过postbackurl传值方式打开噢