2011年8月10日

在ashx文件中使用Session和QueryString

摘要: 有三点需要注意:1.命名空间中要加入using System.Web.SessionState;2.接口名要加入IRequiresSessionState或IReadOnlySessionState;3.不管是Session还是QueryString都要通过HttpContext来获取。具体代码如下:view sourceprint?01<%@ WebHandler Language="C#" Class="UploadHandler" %> 0203using System; 04using System.IO; 05using Syste 阅读全文

posted @ 2011-08-10 11:08 Mr Lin 阅读(241) 评论(1) 推荐(0) 编辑

导航