{infiniteZest}
// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
AJAX
Apple
ASP.NET
.NET
Git
Google / Android
Python / IronPython
Miscellaneous
SQL Server
AJAX Source Viewer
View the source code of a Method from ASP.NET AJAX Library. Choose a method from the menu items above (Namespaces, Classes, or Methods).
Method '_onLogoutComplete(result, context, methodName)'
Method: _onLogoutComplete(result, context, methodName)
Method Full Name:     Sys$Services$_AuthenticationService$_onLogoutComplete(result, context, methodName)
Class: _AuthenticationService
Namespace: Sys.Services
Source File: MicrosoftAjax.debug.js
1   function Sys$Services$_AuthenticationService$_onLogoutComplete(result, context, methodName) {
2     if(result !== null) {
3       throw Error.invalidOperation(String.format(Sys.Res.webServiceInvalidReturnType, methodName, "null"));
4     }
5     
6     var redirectUrl = context[0];
7     var userContext = context[3] || this.get_defaultUserContext();
8     var callback = context[1] || this.get_defaultLogoutCompletedCallback() || this.get_defaultSucceededCallback();
9     this._authenticated = false;
10    
11    if (callback) {
12      callback(null, userContext, "Sys.Services.AuthenticationService.logout");
13    }
14    
15    if(!redirectUrl) {
16      window.location.reload();
17    }
18    else {
19      window.location.href = redirectUrl;
20    }
21  }
This is the JavaScript source for method _onLogoutComplete(result, context, methodName) from ASP.NET AJAX Library. Full name for this method is Sys$Services$_AuthenticationService$_onLogoutComplete(result, context, methodName). It belongs to the class _AuthenticationService, which is in Sys.Services namespace. This source is in MicrosoftAjax.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map