Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Page Inheritance

Status
Not open for further replies.

SBGibson

Programmer
Apr 18, 2001
125
IT
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top