在UpdatePanel外面很简单:
Response.Redirect("~/test.aspx");那在UpdatePanel里面呢?
这个只能打开,不能转向ScriptManager.RegisterStartupScript(UpdatePanel1, UpdatePanel1.GetType(), "", "window.open('test.aspx','test')", true);

解决方案 »

  1.   

    string str= "location.replace('test.aspx')" ;ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "click", str, true);
      

  2.   

    a href=“” target 属性打开新的页面 
      

  3.   

    ScriptManager.RegisterStartupScript(UpdatePanel1, UpdatePanel1.GetType(), "", "location.href='a.html'", true);
      

  4.   

    用window.location.href="a.aspx" 或window.location.href='a.aspx' 都行
      

  5.   


    还是 Redirect 嘛!
      

  6.   

    “外面、里面”,“里面、外面”,何苦自己纠结自己呢?当你稍微想到UpdatePanel也不过是通过html form提交的机制(而不是轻量级ajax的机制),使用 Redirect 就没有什么可疑惑的。