日期:2014-05-18  浏览次数:20427 次

怎样在.cs中编写关闭当前aspx窗口的代码?
rt

------解决方案--------------------
如果该窗口是本脚本打开的,刚可以用
C# code

string js = "<script>window.close();</script>";
ClientScript.RegisterClientScriptBlock(this.GetType(), "myJS", js);

------解决方案--------------------
Rsponse.Write("<script>Window.clock()</script>");