public void ProcessRequest(HttpContext context)
 {
     context.Response.ContentType = "text/plain";
     string keyWord = context.Request["term"];
     if (!string.IsNullOrEmpty(keyWord))
     {
         KeyWordsRankBLL bll = new KeyWordsRankBLL();
         string[] array = bll.GetStrLike(keyWord);
         if (array.Length > 0)
         {
             JavaScriptSerializer jss = new JavaScriptSerializer();
             context.Response.Write(jss.Serialize(array));
         }
     }
 }
Esempio n. 2
0
 public void Execute(JobExecutionContext context)
 {
     KeyWordsRankBLL bll = new KeyWordsRankBLL();
     bll.DeleteAll();
     bll.AddBySearchDetails();
 }