Back To: DotNetNuke Silverlight IWebXAML
// CallWebServiceMethods.js
function GetUser(PortalID,ModuleID,UserID,Password,sender)
{
DotNetNuke.Modules.IWebXAML.WebService.GetUser(PortalID,ModuleID,UserID,Password,SucceededCallback,null,sender);
}
// This is the callback function invoked if the Web service
// succeeded.
// It accepts the result object as a parameter.
function SucceededCallback(result, userContext)
{
userContext.findName("txtButton").Text=result;
}
//every external Javascript file that is being referenced from ScriptManager must have a call to Sys.Application.
if (typeof(Sys) !== "undefined") Sys.Application.notifyScriptLoaded();