Returns a current instance of this control if an instance is already loaded on the page. Otherwise a new instance is created, added to the Form and returned.

It's important this function is not called too early in the page cycle - it should not be called before Page.OnInit().

This property is the preferred way to get a reference to a ScriptContainer control that is either already on a page or needs to be created. Controls in particular should always use this property.

public static ScriptContainer Current

See also:

Class ScriptContainer

  Last Updated: 7/15/2008 | © West Wind Technologies, 2008