User626324527 posted
In ASP.NET 1.x, every page has an explicit class name so if you have an aspx name named MyPage, it can be called inside a user control it contains by doing a cast:
((MyPage)this.Page).SomeFunction();
It's not a good way to create such a dependency but sometimes necessary. In ASP.NET 2.0, how to do this? The page class name is not allowed in the child control as doing <% Reference Page="MyPage.aspx"%> in the child control results in
a circular reference error during compile.