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 { get; }

See also:

Class ScriptContainer

© West Wind Technologies, 1996-2016 • Updated: 12/12/15
Comment or report problem with topic