Client Callback and Page.IsPostBack

Feb 17, 2006

I just spend ½ hour trying to find out, why my client callbacks where executing code inside the if (!Page.IsPostBack) region of my Page_Load method. It turns out, the Page class in .NET 2.0 has now got a new property called IsCallback. I then changed my if (!Page.IsPostBack) to if (!Page.IsPostBack && !Page.IsCallback). You learn something every day. The client callback feature of .NET 2.0 is really well implemented. If you haven't tried it yet, you should. It works like a charm and the things you can do with it, is absolutely incredible. Thumbs up to the architects of that feature. The father of ASP.NET Scott Guthrie is probably one of them.

* $4.95/month ASP.NET Hosting with FREE SQL 2012 DB! – Click Here!
Comments are closed

About the author

Mads Kristensen

Mads Kristensen
Program Manager at the Microsoft Web Platform team and founder of BlogEngine.NET.

More...

Month List

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer’s view in any way.