Thomas Sampson

Detecting first page load in ASP.NET

8 Comments

on the page load event….

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

Advertisements

Author: tomtech999

I have recently graduated with a 1st class degree in MComp Games Software Development at Sheffield Hallam University, focusing primarily on application development in C++, with experience in graphics programming, scripting languages, DVCS/VCS and web technology. In my spare time I enjoy Drumming, Reading and Snowboarding!

8 thoughts on “Detecting first page load in ASP.NET

  1. you are my hero

  2. Sweet. Thanks!

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

  4. it is not working for all the cases

  5. Hi there! Would you mind if I share your blog with my facebook group?
    There’s a lot of folks that I think would really appreciate your content. Please let me know. Many thanks

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 )

Google+ photo

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

Connecting to %s