This topic has not yet been rated - Rate this topic

ScriptManager.RegisterClientScriptBlock Method

Registers a client script block with the ScriptManager control for use with a control that is inside an UpdatePanel control, and then adds the script block to the page.

This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.

  Name Description
Public method Static member RegisterClientScriptBlock(Control, Type, String, String, Boolean) Registers a client script block with the ScriptManager control for use with a control that is inside an UpdatePanel control, and then adds the script block to the page.
Public method Static member RegisterClientScriptBlock(Page, Type, String, String, Boolean) Registers a client script block with the ScriptManager control for use with a control that is inside an UpdatePanel control, and then adds the script block to the page.
Top
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
use string.format
example: string.Format("confirm('insert parameter value here: {0}');", value)
parameter value passing using ScriptManager.RegisterClientScriptBlock

how to pass a value to javascript function using ScriptManager.RegisterClientScriptBlock .

like i have to pass some username to javascript function which opens an outlook with the username filled.

any help would be appreciated,.

thanks in advance