I am calling a web service via Javascript. I tried it first in a web page that does not have a Masterpage and it worked perfectly. Then I moved everything over to a web page that does use a Masterpage, and I get a "Microsoft JScript runtime error: Object required" on the javascript statement that calls the web service. My javascript statements look like so:
function AddTwoNumbers(a, b) {
svcAddToCart.AddTwoNumbers(a, b, Success);
}
function Success(result) {
document.getElementById('lblResult').firstChild.nodeValue = result;
}
The web service looks like:
Imports System.Web
Imports System.Web.Services
Imports System.Web.Services.Protocols
Imports System.Data
' To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line.
<System.W ...
Go to the complete details ...