{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 '_getPostBackSettings(element, elementUniqueID)'
Method: _getPostBackSettings(element, elementUniqueID)
Method Full Name:     Sys$WebForms$PageRequestManager$_getPostBackSettings(element, elementUniqueID)
Class: PageRequestManager
Namespace: Sys.WebForms
Source File: MicrosoftAjaxWebForms.debug.js
1   function Sys$WebForms$PageRequestManager$_getPostBackSettings(element, elementUniqueID) {
2     var originalElement = element;
3     var proposedSettings = null;
4     while (element) {
5       if (element.id) {
6         if (!proposedSettings && Array.contains(this._asyncPostBackControlClientIDs, element.id)) {
7           proposedSettings = this._createPostBackSettings(true, this._scriptManagerID + '|' + elementUniqueID, originalElement);
8         }
9         else {
10          if (!proposedSettings && Array.contains(this._postBackControlClientIDs, element.id)) {
11            return this._createPostBackSettings(false, null, null);
12          }
13          else {
14            var indexOfPanel = Array.indexOf(this._updatePanelClientIDs, element.id);
15            if (indexOfPanel !== -1) {
16              if (this._updatePanelHasChildrenAsTriggers[indexOfPanel]) {
17                return this._createPostBackSettings(true, this._updatePanelIDs[indexOfPanel] + '|' + elementUniqueID, originalElement);
18              }
19              else {
20                return this._createPostBackSettings(true, this._scriptManagerID + '|' + elementUniqueID, originalElement);
21              }
22            }
23          }
24        }
25        if (!proposedSettings && this._matchesParentIDInList(element.id, this._asyncPostBackControlClientIDs)) {
26          proposedSettings = this._createPostBackSettings(true, this._scriptManagerID + '|' + elementUniqueID, originalElement);
27        }
28        else {
29          if (!proposedSettings && this._matchesParentIDInList(element.id, this._postBackControlClientIDs)) {
30            return this._createPostBackSettings(false, null, null);
31          }
32        }
33      }
34      element = element.parentNode;
35    }
36    if (!proposedSettings) {
37      return this._createPostBackSettings(false, null, null);
38    }
39    else {
40      return proposedSettings;
41    }
42  }
This is the JavaScript source for method _getPostBackSettings(element, elementUniqueID) from ASP.NET AJAX Library. Full name for this method is Sys$WebForms$PageRequestManager$_getPostBackSettings(element, elementUniqueID). It belongs to the class PageRequestManager, which is in Sys.WebForms namespace. This source is in MicrosoftAjaxWebForms.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map