asp.net后台关闭按钮,可以关闭框架页

 在page事件中加入下面的代码就OK了
this.Button5.Attributes.Add("onclick", "window.close()");

Response.Write("<script language=javascript>parent.window.close();</script>");

原文地址:https://www.cnblogs.com/shuyu/p/1499100.html