<%@ WebHandler Language="C#" Class="Kernel" %> using System; using System.Collections.Generic; using System.Web; using System.Data; using System.Data.Common; using System.Web.SessionState; using System.Text; using eMIS; public class Kernel : IHttpHandler , IRequiresSessionState { public void ProcessRequest (HttpContext context) { if (context.Session["userid"]==null) context.Response.End(); string f = context.Request.QueryString["f"].ToString(); string menuId = context.Request.QueryString["mid"].ToString(); InstanceManager inst = new InstanceManager(context, menuId); inst.AllowSaveState = true; if (f == "0") { string list = inst.GetStateValue("spk"); if (list != "") { inst.SetStateValue("dsel","1"); //program.PrimaryKey + " in (" + list + ")"; } } else { inst.SetStateValue("dsel", ""); } } public bool IsReusable { get { return false; } } }