我已经创建了一个名为multiOptionService.asmx
的.net Webservice。在这个Webservice中,我创建了一个名为public string getCallType()
的WebMethod。现在在我的jquery文件中,我试图通过ajax使用下面的代码调用。
function showCallTypeDialogueBox() {
var calloutput = null;
$.ajax({
type: 'GET',
url: 'multiOptionService.asmx/getCallType',
async: false,
dataType: "text",
success: function (data) {
alert(data);
}
}
});
现在当我试图调用该函数时,我在winfox的firebug中出现The resource cannot be found.
错误。
请帮我告诉我哪里出错了并纠正我..
感谢..