E
Emmanuel
Hi,
I'm working on a c# web app and require having some code which runs in the
page Load event of each page and to be reusable in other web apps.
So i decided to use a Class Library which contains a class that inherits
from the System.Web.UI.Page. the class contains an override of the OnLoad
event in which the common code is executed.
However, i also need to have an intermediate level class which inherits from
this base page to perform web app specific logic. this is were my problem
lies. If i make the actual web forms to inherit from the Intermediate page
which is overriding the OnLoad of the base page, the Page_Load event of the
web forms will not be executed.
Actually, the OnLoad event of the base page does not get executed also, but
i fixed this by placing a base.OnLoad(e) line in the OnLoad of the
intermediate page.
How can i make the BasePage OnLoad, the IntermediatePage OnLoad and the web
form Page_Load events get fired in that order?
regards,
I'm working on a c# web app and require having some code which runs in the
page Load event of each page and to be reusable in other web apps.
So i decided to use a Class Library which contains a class that inherits
from the System.Web.UI.Page. the class contains an override of the OnLoad
event in which the common code is executed.
However, i also need to have an intermediate level class which inherits from
this base page to perform web app specific logic. this is were my problem
lies. If i make the actual web forms to inherit from the Intermediate page
which is overriding the OnLoad of the base page, the Page_Load event of the
web forms will not be executed.
Actually, the OnLoad event of the base page does not get executed also, but
i fixed this by placing a base.OnLoad(e) line in the OnLoad of the
intermediate page.
How can i make the BasePage OnLoad, the IntermediatePage OnLoad and the web
form Page_Load events get fired in that order?
regards,