开发者

Clicking "X" on the ASP.NET popup event

开发者 https://www.devze.com 2023-01-21 04:35 出处:网络
I\'m stuck with the question, simple at f开发者_开发知识库irst glance Which event raises when we close ASP.NET popup window by clicking \"x\" in the top right corner?If you mean WinForms event, it wo

I'm stuck with the question, simple at f开发者_开发知识库irst glance

Which event raises when we close ASP.NET popup window by clicking "x" in the top right corner?


If you mean WinForms event, it would be Form_Closing followed by Form_Closed. In Asp.Net there's no event that can be caught on the server directly, since this is a client side event. However, you CAN, in client side script, catch this event (onUnload or onbeforeunload) and trigger a postback to the server if you need to.

0

精彩评论

暂无评论...
验证码 换一张
取 消