<%@ WebHandler Language="C#" Class="Send" %> 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 Send : IHttpHandler , IRequiresSessionState { private FlowManager flowManager = null; public void ProcessRequest (HttpContext context) { string flowId = context.Request.QueryString["fid"].ToString(); string recordId = context.Request.QueryString["rid"].ToString(); string wwwroot = context.Request.ApplicationPath; if (wwwroot == "/") wwwroot = ""; DataManager systemDataManager = new DataManager(); DataTable dt = systemDataManager.ExecuteTable("select b.cxid from XT_LCSL a, COM_DXB b WHERE a.JLID=? and a.OBJECTID=b.id",recordId); if (dt.Rows.Count == 0) { context.Response.Write("未定义对象!"); context.Response.End(); } else { string programId = dt.Rows[0][0].ToString(); //context.Response.Redirect("CustomPageDisplay.ashx?proid=" + programId.ToString() + "&recid="+recordId +"&" + DateTime.Now.Ticks.ToString()); context.Response.Write(""); } } public bool IsReusable { get { return false; } } }