Four Ways to Detect a Page Load in ASP.NET

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:

  1. using window.onload property
  2. detecting onLoad() event of the <body> tag
  3. using a JQuery function
  4. 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

Leave a Reply

Your email address will not be published. Required fields are marked *