您的位置:首页 > 其它

ashx文件中使用session提示“未将对象引用设置到对象的实例”

2010-12-07 22:04 447 查看
代码using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data;
using System.Web.SessionState;

namespace friends {
/// <summary>
/// Handler 的摘要说明
/// </summary>
public class Handler : IHttpHandler, IRequiresSessionState {

public void ProcessRequest(HttpContext context) {
context.Response.ContentType = "text/plain";

···

System.Web.SessionState.IReadOnlySessionState 为只读会话的接口System.Web.SessionState.IRequiresSessionState 为可读可写的
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐