-2

我有一个 HTTP 处理程序(.ashx),它从数据库生成一些 html 代码,我想从我的 Jquery 函数中调用它并传递一个值(userID)。

我不知道如何调用它并检索它的数据。

4

2 回答 2

7

像这样的东西。

$(document).ready(function() {

    $.get("http://path/to/handler.ashx", function(html) {
        alert(html);
    });

});
于 2013-03-08T07:52:05.753 回答
4

使用 Google - 键入后的第一个站点jquery ashx- https://sites.google.com/site/spyderhoodcommunity/tech-stuff/usingjqueryinaspnetappswithhttphandlersashx

于 2013-03-08T07:54:15.567 回答