Provides properties and methods for registering resources, such as scripts, on a page so that they can be requested when the page is rendered.
Assembly: Microsoft.SharePoint (in Microsoft.SharePoint.dll)
If you register a .js file by adding a control to an .aspx page, the control registers all .js dependencies. To import the various "SP" namespaces, such as those listed at ECMAScript Object Model Reference, you must register the control as an on-demand script by specifying OnDemand="true". When you register the script, use the SP.SOD.execute or SP.SOD.executeFunc method to execute the script.