I have aspx page on which I put user control A which derived from user control B.
When I moevd to Visual 2005 (ASP.NET 2.0), I noticed that Page_PreRender in control B is fired twice.
When I put :
protected void Page_PreRender(object sender, System.EventArgs e)
in control A - the problem was solved (i.e. Page_PreRender of A is fired and Page_PreRender of B is fired only once).
But I want to understand why was it happpening?
P.S. I can't reconstruct this on simple project, created in Visual 2005. Maybe it's related to the fact that the project was migrated from Visual 2003, or there is somethign else different in my project that causes to such strange behavior?