我在jquery中有一个函数,如
$(".menuspan").click(function(){ bindResult(); });
function bindResult()
{
$.get("settings.aspx/TestMethod");
}
在代码背后我有
[WebMethod(Description = "bind")]
[ScriptMethod(ResponseFormat = ResponseFormat.Xml)]
public void TestMethod()
{
}
但它没有调用TestMethod,但是如果我把这个方法放在asmx中,并给出asmx路径,它的工作完美,那我做错了什么
我无法使用PageMethod,因为我无法将该方法声明为静态
任何帮助请
由于