Session in base class

I

Islamegy®

I have a Class Drived From Page class (.Net 1.1)
public class MyPageBase : Page
{
public int Language
set
{
Session["Lang"] = value
}
get
{
return (int)Session["Lang"]
}
}

When my pages inherit from this class, I get exception that MyPageBase must
be SessionState enabled.
How could i save and retrive sessions in my base class??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,233
Members
46,821
Latest member
AleidaSchi

Latest Threads

Top