Response.Write( " <script> alert( 'testing! ') </script> ");
     Response.Redirect( "savrok.aspx ");

    这种方式是错误的,只会跳转,不能弹出对话框。

 

    正确的写法是

      this.Response.Write(" <script language=javascript>alert('" + m_message + "'); window.location.href= 'ksbm_cetjsj_xsbm.aspx?xsxh="+m_xsxh+"&ksny="+m_ksny+"&dm="+m_dm+"'</script> ");

 

分享来自:http://blog.sina.com.cn/s/blog_58de85690100po6t.html#commonComment

http://blog.csdn.net/oldtown/article/details/5665353

相关文章: