javascript - calling Web service in ASP.net -


इस सवाल का पहले से ही एक उत्तर है: < / P>

  • 5 जवाब

मैं पहुंचने का प्रयास कर रहा हूं वेब सेवा जो कि नेट में लिखी गई थी। लेकिन मुझे पता चला कि मेरे जावास्क्रिप्ट कोड में कोई समस्या है। लेकिन मैं इसकी पहचान नहीं कर सकता कि यह क्या है।

<पूर्व> function getID () {var id = document.getElementById ("Text1")। Value;

WebApplication4.myWebService1.getDetails (आईडी, getSMSSucsess); // मुझे लगता है कि समस्या ..} समारोह getSMSSucsess (परिणाम) {document.getElementById ("myDev")। मूल्य = परिणाम ["स्थिति"]; }

आप जावास्क्रिप्ट से सर्वर साइड कोड कॉल नहीं कर सकते, सर्वर पर एक रहता है क्लाइंट पर अन्य।

रेखा

  WebApplication4.myWebService1.getDetails (आईडी, getSMSSucsess);  

जावास्क्रिप्ट में मौजूद नहीं है।

मैं वेबसर्विसेज को बनाने का सुझाव दूंगा।


Comments

Popular posts from this blog

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

c++ - Redefined variable in the other module -