我有一个silverlight应用程序,我想捕获浏览器的关闭事件。所以,我做什么,我在.aspx页面中我有这样的代码Silverlight 4:OnBeforeUnload
function closeIt() {
return "Any string value here forces a dialog box to \n" +
"appear before closing the window.";
}
window.onbeforeunload = closeIt;
如果这个功能触发,一个popupwindow会出现,你有2个按钮确定和取消。
在silverlight或服务器端有没有办法获得用户点击的价值?
谢谢
对我以前的问题相同的解决方案http://stackoverflow.com/questions/3456591/silverlight-4-f5-refresh – xscape 2010-08-27 02:27:03