<%@ WebHandler Language="C#" Class="DelCart" %>

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Model;
using DAL;
using BLL;

public class DelCart : IHttpHandler {
    
    public void ProcessRequest (HttpContext context) {
        context.Response.ContentType = "text/plain";
        string strid = context.Request["del_id"].ToString();
        BLLCart bll = new BLLCart();
        bool b = bll.delete(strid);
        context.Response.Redirect("ListCart.ashx");
    }
    public bool IsReusable {
        get {
            return false;
        }
    }
}