Registers a startup script block with the ScriptManager control and adds the script block to the page.