<%@ WebHandler Language="C#" Class="Apagar" %> using System; using System.Web; public class Apagar : IHttpHandler { public void ProcessRequest(HttpContext context) { context.Response.ContentType = "text/plain"; string tabela = context.Request.QueryString["tabela"].ToString(); int id = Convert.ToInt16(context.Request.QueryString["id"].ToString()); bool apagar = Intranet.Conteudos.Apagar(tabela, id); context.Response.Write(apagar); } public bool IsReusable { get { return false; } } }