using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace HighWay.WebSite.Handler { /// /// ModuleObject_ajax 的摘要说明 /// public class ModuleObject_ajax : IHttpHandler { public void ProcessRequest(HttpContext context) { string action_type = HttpContext.Current.Request.Form["action_type"]; string reString = string.Empty; switch (action_type) { #region Ajax 模块 Module case "Module": //TableSchema_MODULE _TableSchema_MODULE = new TableSchema_MODULE(); //List _List = HiiShe.Web.Common.CommonHelper.GetColumName(_TableSchema_MODULE); //using (MODULE _MODULE = new MODULE()) //{ // DataTable _DataTableModule = _MODULE.FillDataTable("where 1=1"); // reString = JsonHelper.DataTableToJson(_DataTableModule, "Rows"); //} break; #endregion default: break; } string CurrentGuid = string.Empty; context.Response.ContentType = "text/plain"; context.Response.Write(reString); context.Response.End(); } public bool IsReusable { get { return false; } } } }