I'm trying to make a base class to inherit from instead of using System.Web.UI.Page.
I've made it abstract and inherited from System.Web.UI.Page.
When I use it first of all I can't use the ASP.NET webforms object and when I launch the application (without compiler errors) I obtain an exception:
Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive.
The sessionstate values are all ok.
Someone can show me the right way for making page inheritance? Stevie B. Gibson
I've made it abstract and inherited from System.Web.UI.Page.
When I use it first of all I can't use the ASP.NET webforms object and when I launch the application (without compiler errors) I obtain an exception:
Session state can only be used when enableSessionState is set to true, either in a configuration file or in the Page directive.
The sessionstate values are all ok.
Someone can show me the right way for making page inheritance? Stevie B. Gibson