|
|
|
ASP.NET Web Services รับตัวแปรแบบ Object ของ JavaScript |
|
|
|
|
|
|
|
Code (JavaScript)
var webMethod = "http://MyWebService/Web.asmx/GetInfoByDates";
var parameters = "{'sDate':'" + sDate + "','eDate':'" + eDate + "'}";
$.ajax({
type: "POST",
url: webMethod,
data: parameters,
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function(msg) {
$(divToBeWorkedOn).html(msg.d);
},
error: function(e){
$(divToBeWorkedOn).html("Unavailable");
}
});
|
|
|
|
|
Date :
2017-03-03 17:56:30 |
By :
ผ่านมา |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 00
|