Beispiel #1
0
 public void ProcessRequest(HttpContext context)
 {
     context.Response.ContentType = "text/html";
     int nid=Convert.ToInt32(context.Request.QueryString["nid"]);
     try
     {
         BLL.News bllNews=new BLL.News();
         if (bllNews.DelNews(nid))
         {
             context.Response.Write("OK");
         }
         else
         {
             context.Response.Write("FAIL!");
         }
     }
     catch (Exception ex)
     {
         throw ex;
     }
     //JavaScriptSerializer jss = new JavaScriptSerializer();
     //string strJson = jss.Serialize(list);
 }