1、引用空间using
System.Web.SessionState;2、继承接口:IRequiresSessionState如:public
class myDeliveryAddress : IHttpHandler, IRequiresSessionState
{ //这样就可以跟正常的session一样使用了}
本文介绍如何通过引用空间和实现特定接口来使用SessionState,使开发人员能够像在传统的ASP.NET Web Forms应用程序中那样操作会话状态。
1、引用空间using
System.Web.SessionState;2、继承接口:IRequiresSessionState如:public
class myDeliveryAddress : IHttpHandler, IRequiresSessionState
{ //这样就可以跟正常的session一样使用了}
被折叠的 条评论
为什么被折叠?