tags:

views:

47

answers:

2

I want to send an Email message after a page is returned to the browser. Where do I place this send Email code so that it does not delay the page that is returned to the browser?

A: 

Do you mean through Javascript? The best you can do is with mailto: on window.load but I wouldn't recommend this. Can you explain the situation more in depth?

alex
+2  A: 

ASP.NET pages have an unload event that fires after the content is returned to the browser. Should be exactly what you're looking for.

Chris Pebble