在C#的后台代码中写入
this.ClientScript.RegisterStartupScript(typeof(Page), "JavaScript", "<script>window.close('StateChangeApply.aspx','','left=0 ,top=0, scrollbars=yes,width=600,height=500')</script>"); 
可以防止页面变化
本文介绍了一种使用 C# 后台代码关闭特定页面的方法。通过注册启动脚本,可以实现对 'StateChangeApply.aspx' 页面的关闭,并设置其尺寸及滚动条属性。
在C#的后台代码中写入
this.ClientScript.RegisterStartupScript(typeof(Page), "JavaScript", "<script>window.close('StateChangeApply.aspx','','left=0 ,top=0, scrollbars=yes,width=600,height=500')</script>"); 
可以防止页面变化
1156

被折叠的 条评论
为什么被折叠?