Sometimes it is important for your website to detect a page load so you can configure a page load event for your asp.net application. This is useful for If you want to show to your users a welcome alert message when a user visits a particular page, the easiest method for that is to detect the page load event to prompt the user.
This article will showcase the four ways on how to detect a page load in ASP.NET. In summary, these are:
- using window.onload property
- detecting onLoad() event of the <body> tag
- using a JQuery function
- Using a C# pageLoad() event
Read the rest of the article here:Â http://www.dotnetfunda.com/articles/article2377-4-ways-to-detect-page-load-in-aspnet.aspx