<%@ WebHandler Language="C#" Class="messagenoprompt" %> using System; using System.Collections.Generic; using System.Web; using System.Data; using System.IO; using eMIS.Data; using System.Data.Common; using System.Text; using System.Web.SessionState; using eMIS; public class messagenoprompt : IHttpHandler, IRequiresSessionState { public void ProcessRequest (HttpContext context) { string msgid = context.Request.QueryString["id"].ToString(); string all = context.Request.QueryString["a"].ToString(); string userId = context.Session["userid"].ToString(); DataManager dm = new DataManager(); object o = dm.Operator.ExecuteScalar("select itemval from xt_user_setting where itemid=1 and userid="+context.Session["UserId"].ToString()); string h; if (o == null) { h = "1"; } else { h = o.ToString(); } if(all=="1") dm.ExecuteNonQuery("update XT_PROMPT set PromptTime=DATEADD(hh," + h + ",getdate()) where PromptTime