在aa.aspx.cs文件里头写逻辑:
Response.Redirect bb.aspx想让打开新页bb.aspx后,,把aa.aspx.cs也进行刷新一下..如何做到?谢谢!

解决方案 »

  1.   

    用button click事件就行  服务器控件都ispostback
      

  2.   

    aa.aspx页面html:
    <asp:button class="submit" id="btnLogin" runat="server" Height="22px" Text=""></asp:button>cs: btnLogin事件private void btnLogin_Click(object send,System.EventArgs e)
    {
       //do something
       Response.Redirect "bb.aspx";
    }我怎么样在那个事件上写打开新的页面(bb.aspx),并刷新aa.aspx页面呢?
      

  3.   

    private void btnLogin_Click(object send,System.EventArgs e) 

       //do something 
       //Response.Redirect "bb.aspx";
         Response.Write("<script>window.open('bb.aspx');</script>");

      

  4.   

    点击按钮的时候输出以下javascript
    window.open('bb.aspx'); 
    window.location.reload();
      

  5.   

    Response.Write(" <script>window.open('bb.aspx');window.location.href=window.location.href </script>"); 
    说明:使用javascript的 window.open方法打开一个新页面,window.location.href=window.location.href来重新刷新页面
    window.location.reload(); 也可以,不过会弹出提示,是否重试提交.呵呵