解决.Net中服务器控件弹页面而引发的样式改变 Posted on 2007-01-13 Edited on 2024-05-16 Word count in article: 262 Reading time ≈ 1 mins. 在C#的后台代码中写入 123this.ClientScript.RegisterStartupScript( typeof (Page), "JavaScript", "<script>window.close('StateChangeApply.aspx','','left=0,top=0,scrollbars=yes,width=600,height=500')</script>" ); 可以防止页面变化