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