using MESClassLibrary.BLL.Keep; using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace MESWebSite.HttpHandlers { /// /// KeepLevelHandler 的摘要说明 /// public class KeepLevelHandler : IHttpHandler { HttpRequest Request = null; HttpResponse Response = null; public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; Request = context.Request; Response = context.Response; string method = Request.Params["method"]; switch (method) { case "QueryForCombobox": QueryForCombobox(); break; default: break; } } public bool IsReusable { get { return false; } } void QueryForCombobox() { KeepLevelBLL bll = new KeepLevelBLL(); Response.Write(bll.GetComboboxData()); Response.End(); } } }