news_del.ashx
来自「news新闻系统. news新闻系统 news新闻系统」· ASHX 代码 · 共 28 行
ASHX
28 行
<%@ WebHandler Language="C#" Class="news_del" %>
using System;
using System.Web;
using News.BLL;
public class news_del : IHttpHandler {
public void ProcessRequest (HttpContext context) {
string str = context.Request.Form["id"];
string[] arr = str.Split(',');
int[] id = new int[arr.Length];
newsMuiBLL bll = new newsMuiBLL();
for (int i = 0; i < id.Length; i++)
{
id[i] = int.Parse(arr[i]);
bll.Delete(id[i]);
}
}
public bool IsReusable
{
get {
return false;
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?