Client Callback and Page.IsPostBack

by Mads Kristensen 17. February 2006 18:22

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.

* Only $4.95/month ASP.NET & Windows 2008 + IIS 7 Hosting! FREE SQL Included

Tags:

ASP.NET

Comments are closed

About the slave

Mads Kristensen Mads Kristensen
Web developer at ZYB and founder of BlogEngine.NET. More...

LinkedIn ZYB Facebook Last.fm Twitter View Mads Kristensen's profile on Technorati

The Lounge

Disclaimer

The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.

© Copyright 2008