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

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 BLL;

public class Update : IHttpHandler
{

    public void ProcessRequest(HttpContext context)
    {
        context.Response.ContentType = "text/plain";
        int id = int.Parse(context.Request["id"].ToString());
        int num = int.Parse(context.Request["num"].ToString());
        BLLCart bll = new BLLCart();
        bool b = bll.update(id, num);
        context.Response.Redirect("ListCart.ashx");
    }
    public bool IsReusable
    {
        get
        {
            return false;
        }
    }

}