नहीं कहा जा रहा है, मैं jquery.ajax के माध्यम से सर्वर पर एक स्ट्रिंग युक्त जावास्क्रिप्ट चर पारित कर रहा हूं। हालांकि "सफलता" स्थिति कहा जाता है, सर्वर-साइड WebMethod को कभी नहीं कहा जाता है। ग्राहक:वेबमाइड्स को
$.ajax({
type: "post",
url: "Playground.aspx/childBind",
data: {sendData: ID},
//contentType: "application/json; charset=utf-8",
dataType: "text",
success: function (result) { alert("successful!" + result.d); }
})
सर्वर:
[WebMethod]
public static string childBind(string sendData)
{
return String.Format("Hello");
}