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

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

jquery - How to make a wrapper function in javascript? -

jsp - No mapping found for HTTP request with URI with annotation config Spring MVC and Jetty -