个点击按钮后自动关闭代码
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>");