wwWebPage.RegisterClientScriptBlock

Adds a client script block to the page. The block is added at the top of the page and typically used for adding functions.

o.wwWebPage.RegisterClientScriptBlock(lcID,lcScriptCode,lcLocation)

Parameters

lcID
Id for this script. Use a shared ID if this script block needs to be accessed potentially by multiple controls. Use a Unique id (ie. UniqueID + "_myscript") if the script needs to vary for multiple controls.

lcScriptCode
The script code to embed into the page

lcLocation
Optional - Header, HeaderTop.
If not specified the value is embedded into the document body towards the top of the document.


See also:

Class wwWebPage

© West Wind Technologies, 1996-2022 • Updated: 10/07/10
Comment or report problem with topic