Detecting first page load in ASP.NET

on the page load event….

if(!IsPostBack)
{
//very first load//
}
else
{
//not first load//
}

6 comments to Detecting first page load in ASP.NET

  1. Thanks says:

    I love you.

  2. hiro says:

    you are my hero

  3. Bobmanguything says:

    Sweet. Thanks!

  4. James says:

    Yellow text on white background? Who ever wrote this page should rethink his/her definition of good readability.

  5. vame says:

    it is not working for all the cases

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s