前端JS代码如下:
 $(document).ready(
            function() {
                window.alert("123");
                $.post("Handler1.ashx", function(data, textStatus) {
                    window.alert(data);
                });
                
            }
        );其实效果很简单,ashx就范围1个helloworld  弹出即可但这样写,没有任何效果。以下是ashx的内容
public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            context.Response.Write("Hello World");
        }