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.
asp.netアプリケーションでコードをグローバルに定義する必要がありますが、セッション変数を含むコード..これらのグローバル関数をどこに記述しますか? 助けてください
への参照を持つ任意のアセンブリにコードを配置できますSystem.Web.dll。コードで、次を使用してセッションにアクセスします
System.Web.dll
System.Web.HttpContext.Current.Session["key"]