1.创建好删除页面,后写后台
2.用一般处理程序写
//调用bll里用videoId删除的方法
IVideoManager videoManager = new VideoManager();
public void ProcessRequest(HttpContext context)
{
//获取videoId
var videoId= context.Request.QueryString["videoId"];
if (string.IsNullOrWhiteSpace(videoId))
{
return;
}
//根据Id删除数据
videoManager.DeleteVideo(videoId);
context.Response.End();