I’m closing a WCF endpoint in the page_unload of an asp.net page, when using response.redirect() the page_unload event doesn’t fire and i’m ending up with ophanned endpoint references.
I thought the page_unload should fire everytime.
Anyone shed any light.
Thanks
Try this:
When you pass
trueinstead offalseyou are indicating that you wish to terminate the execution of the page. By passingfalseyou are indicating that you wish the page to finish processing before redirecting the client.