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??
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??