QQ:285679784 欢迎加入技术交流QQ群80669150 (附加信息:珠海 -"Lzw )一起学习 !
Aspx Code
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "../AutoComplete.asmx/FittingsBasePrice",
data: "{UploadFile_ID:'" + UploadFile_ID + "'}",
dataType: 'json',
cache: "false",
success: function(result) {
alert(result.d);
},
error:function(result)
{
alert(result.d);
}
});
AutoComplete.asmx Code
[WebMethod]
public string FittingsBasePrice(string UploadFile_ID)
{
return "1";
}
$.ajax({
type: "POST",
contentType: "application/json; charset=utf-8",
url: "../AutoComplete.asmx/FittingsBasePrice",
data: "{UploadFile_ID:'" + UploadFile_ID + "'}",
dataType: 'json',
cache: "false",
success: function(result) {
alert(result.d);
},
error:function(result)
{
alert(result.d);
}
});
AutoComplete.asmx Code
[WebMethod]
public string FittingsBasePrice(string UploadFile_ID)
{
return "1";
}