One of my WebService's
methods is designed to return a boolean
:
[WebMethod(EnableSession = true), ScriptMethod(UseHttpGet = true)]
public bool StartMonitoring()
{
return Schedule.StartMonitoring();
}
The method within the Schedule class looks like this:
public static bool StartMonitoring()
{
return true;
}
There is also a service call in JavaScript
that looks like this:
var success = false;
success = myself.get_Service().StartMonitoring();
alert(success);
However, when the pop-up appears, it displays "undefined"
instead of true
.
What could be causing this issue?