Friday, October 9, 2009

Why do ASP.NET control events fire more than once?

I’ve always wondered about this and here is the answer:

ASP.NET controls recreates their hierarchy (at a minimum) twice during a single request to the server:

  1. First when the control is being restored to a it's previous state.
  2. Second when all the required modifications are applied.