// Articles. Tutorials. Utilities.
Home  |   Search  |   Login  
Categories Skip Navigation Links
New / All
Google / Android
Python / IronPython
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 'set_parent(value)'
Method: set_parent(value)
Method Full Name:     Sys$UI$Control$set_parent(value)
Class: Control
Namespace: Sys.UI
Source File: MicrosoftAjax.debug.js
1   function Sys$UI$Control$set_parent(value) {
2     var e = Function._validateParams(arguments, [{name: "value", type: Sys.UI.Control}]);
3     if (e) throw e;
4     if (!this._element) throw Error.invalidOperation(Sys.Res.cantBeCalledAfterDispose);
5     var parents = [this];
6     var current = value;
7     while (current) {
8       if (Array.contains(parents, current)) throw Error.invalidOperation(Sys.Res.circularParentChain);
9       parents[parents.length] = current;
10      current = current.get_parent();
11    }
12    this._parent = value;
13  }
This is the JavaScript source for method set_parent(value) from ASP.NET AJAX Library. Full name for this method is Sys$UI$Control$set_parent(value). It belongs to the class Control, which is in Sys.UI namespace. This source is in MicrosoftAjax.debug.js file.
Bookmark and Share This
About  Contact  Privacy Policy  Site Map