using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace VRS.Handler { /// /// KnowledgeHandler 的摘要说明 /// public class KnowledgeHandler :BasePage, IHttpHandler { DataService.BLL.pro_know bll = new DataService.BLL.pro_know(); public override void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; var typeModel = GetTypeByName("维修知识"); if (typeModel != null) { var models = bll.GetModelList(string.Format(" type_id = '{0}' ", typeModel.type_id)); if (models.Any()) { context.Response.Write(models.First().content); } } } public new bool IsReusable { get { return false; } } } }