📄 news_del.ashx
字号:
<%@ 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -