日期:2014-05-18  浏览次数:20458 次

【求助】Response问题~~~
看下面的代码:

protected   void   Button1_Click(object   sender,   EventArgs   e)
        {
               
              Response.Write( " <script> alert( '删除成功! '); </script> ");
                Response.Redirect( "http://www.baidu.com ");
        }

为什么不是现弹出窗口,确定之后才跳转呢???
有什么方法可以解决这个问题吗??

------解决方案--------------------
protected void Button1_Click(object sender, EventArgs e)
{

Response.Write( " <script> alert( '删除成功! ');window.location.href= 'www.baidu.com '; </script> ");

}