日期:2014-05-17 浏览次数:20538 次
Page.RegisterStartupScript("", "<script>alert('更新完成。')</script>"); Response.Write(" <script> windows.Close(); </script> ");
Page.RegisterStartupScript("", "<script>if(confirm("更新完成")){windows.Close()}; </script> ");
------解决方案--------------------
都理解错意思了吧。
Page.RegisterStartupScript("", "<script>if(confirm('更新完成')){windows.Close()}; </script> ");
------解决方案--------------------
ClientScript.RegisterStartupScript(Page.GetType(), "",
"<script>alert('" + str+ "');
window.location.href ='" + strUrl + "';
</script>");