Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
System.Web.UI.Pageから継承するページから始めます。この時点でPage.Sessionはnullではありません。このページは新しいクラスを作成します。このクラスは、System.Web.UI.UserControlから継承する別のクラスから継承します。クラスに入ると、Sessionはnullになります。セッション状態をクラスに持ち込むには何が必要ですか?
ページとクラスの両方が同じWebアプリにあります。
使用してみましたか:
HttpContext.Current.Session
?
幸運を!