ClientScriptProxy.RegisterClientScriptBlock

Renders client script block with the option of rendering the script block in the Html header

For this to work Header must be defined as runat="server"

public void RegisterClientScriptBlock(Control control,
	Type type,
	string key,
	string script,
	bool addScriptTags,
	ScriptRenderModes renderMode)

Parameters

control
any control that instance typically page

type
Type that identifies this rendering

key
unique script block id

script
The script code to render

addScriptTags
Ignored for header rendering used for all other insertions

renderMode
Where the block is rendered

Overloads:


See also:

Class ClientScriptProxy

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