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);
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