{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 '_doPostBack(eventTarget, eventArgument)'
Method: _doPostBack(eventTarget, eventArgument)
Method Full Name:     Sys$WebForms$PageRequestManager$_doPostBack(eventTarget, eventArgument)
Class: PageRequestManager
Namespace: Sys.WebForms
Source File: MicrosoftAjaxWebForms.debug.js
1   function Sys$WebForms$PageRequestManager$_doPostBack(eventTarget, eventArgument) {
2     this._additionalInput = null;
3     var form = this._form;
4     if ((eventTarget === null) || (typeof(eventTarget) === "undefined") || (this._isCrossPost)) {
5       this._postBackSettings = this._createPostBackSettings(false, null, null);
6       this._isCrossPost = false;
7     }
8     else {
9       var clientID = this._uniqueIDToClientID(eventTarget);
10      var postBackElement = document.getElementById(clientID);
11      if (!postBackElement) {
12        if (Array.contains(this._asyncPostBackControlIDs, eventTarget)) {
13          this._postBackSettings = this._createPostBackSettings(true, this._scriptManagerID + '|' + eventTarget, null);
14        }
15        else {
16          if (Array.contains(this._postBackControlIDs, eventTarget)) {
17            this._postBackSettings = this._createPostBackSettings(false, null, null);
18          }
19          else {
20            var nearestUniqueIDMatch = this._findNearestElement(eventTarget);
21            if (nearestUniqueIDMatch) {
22              this._postBackSettings = this._getPostBackSettings(nearestUniqueIDMatch, eventTarget);
23            }
24            else {
25              this._postBackSettings = this._createPostBackSettings(false, null, null);
26            }
27          }
28        }
29      }
30      else {
31        this._postBackSettings = this._getPostBackSettings(postBackElement, eventTarget);
32      }
33    }
34    if (!this._postBackSettings.async) {
35      form.onsubmit = this._onsubmit;
36      this._originalDoPostBack(eventTarget, eventArgument);
37      form.onsubmit = null;
38      return;
39    }
40    form.__EVENTTARGET.value = eventTarget;
41    form.__EVENTARGUMENT.value = eventArgument;
42    this._onFormSubmit();
43  }
This is the JavaScript source for method _doPostBack(eventTarget, eventArgument) from ASP.NET AJAX Library. Full name for this method is Sys$WebForms$PageRequestManager$_doPostBack(eventTarget, eventArgument). 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