%@ WebHandler Language="C#" Class="loadmenus" %> using System; using System.Web; using System.Text; using System.IO; using eMIS.Data; using System.Data; using System.Web.SessionState; using System.Configuration; using eMIS; public class loadmenus : IHttpHandler, IRequiresSessionState { public void ProcessRequest(HttpContext context) { if (context.Session["userid"] == null) { context.Response.Write("会话丢失!"); context.Response.End(); } DataManager dm = new DataManager(); string userId = context.Session["userid"].ToString(); string parentId = context.Request.QueryString["ParentID"].ToString(); string wwwroot = context.Request.ApplicationPath; string ui = ConfigurationManager.AppSettings["ui"].ToString(); if (wwwroot == "/") wwwroot = ""; string imgpath = wwwroot + "/UI/"+ui+"/common"; string html = "
"; html += " |
| "; html += " |
| ";
if (isParent)
{
html += " ";
}
}
html += "