is there any Page OnClose function ?

G

Guest

in normal Window form programming, there's something like form_unload function.
but in asp.net the Page_Unload function is obviously not serving the same
purpose.

Do you guys know how to get the Page onclose() event in asp.net fired when i
clicked another page ??

thanks
 
L

Lau Lei Cheong

Maverick said:
in normal Window form programming, there's something like form_unload function.
but in asp.net the Page_Unload function is obviously not serving the same
purpose.

It's not possible to have onclose event because it's not possible to have a
postback when a webpage is closing.
Do you guys know how to get the Page onclose() event in asp.net fired when i
clicked another page ??
I believe the "onblur" event will serve your purpose, but you have to use
client-side scripting(vbscript/javascript) to invoke a postback(most
commonly by clicking a multifunctional button) because most DOM events do
not generate a postback as they occured.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top