如何从 HTML 访问此处理程序?

How can I access this Handler from an HTML?

我想从 HTML 表单访问此处理程序

public class Eventos : IHttpHandler
    {
        /// <summary>
        /// You will need to configure this handler in the Web.config file of your 
        /// web and register it with IIS before being able to use it. For more information
        /// see the following link: http://go.microsoft.com/?linkid=8101007
        /// </summary>
        #region IHttpHandler Members

        public bool IsReusable
        {
            // Return false in case your Managed Handler cannot be reused for another request.
            // Usually this would be false in case you have some state information preserved per request.
            get { return true; }
        }

        public void ProcessRequest(HttpContext context)
        {
            //write your handler implementation here.
;

            string Tipo = context.Request.QueryString["Tipo"];

            switch (Tipo)
            {
                /*Pagina Index Portada Perfil -------------------------------------------------------------------------------------- */
                case "IndexSelectPerfil":
                    {
                        RegistroEvento(context);
                    }
                    break;
            }
        }

这就是我想在 HTML 表单中调用它的方式

<form class="form-header" action="IX_Registros.Handlers.Eventos" role="form" method="POST" id="#">

但我无法访问它,并且看到各种页面都说要为处理程序创建一个 ashx 文件,但我不知道在哪里创建或使用它 我正在使用 Visual Studio 2015 社区并在 Code On Time 框架的帮助下创建它

我使用本指南 http://codepedia.info/generic-handler-ashx-file-post-send-json-data-parameters-in-asp-net-c-jquery/ 访问处理程序并 post JSON 访问我的 HTML 页面。