我无法关闭使用C#代码的当前asp.net页面。我试过了:无法关闭当前窗口
ClientScript.RegisterClientScriptBlock(Page.GetType(),
"script",
"window.close();",
true);
我没有收到任何错误,但它不起作用。
我无法关闭使用C#代码的当前asp.net页面。我试过了:无法关闭当前窗口
ClientScript.RegisterClientScriptBlock(Page.GetType(),
"script",
"window.close();",
true);
我没有收到任何错误,但它不起作用。
请尝试以下链接
Programmatically close aspx page from code behind
基于场景它很可能。请阅读上面的线程回复
而且下面的链接显示了同样的问题
How to close the current tab in the server side button click?
在这个“Programmatically clo se aspx从后面的代码页面“标记的答案是关闭窗口,但它不执行其他事情写在按钮单击事件。 – John
我没有得到任何错误 – John
试过,但没有运气:( – John
你有更新面板吗? – Arion