Skip to content Skip to sidebar Skip to footer

Update Panel With ClientScriptManager

code protected void a_Click(object sender, EventArgs e) { ClientScriptManager cs = Page.ClientScript; st

Solution 1:

Try using ScriptManager.RegisterStartupScript() method.

See the following MSDN documentation: ScriptManager.RegisterStartupScript()

It states:

Registers a startup script block for a control that is inside an UpdatePanel by using the ScriptManager control, and adds the script block to the page.


Solution 2:

Use ScriptManager.RegisterStartupScript instead of ClientScript.RegisterStartupScript


Post a Comment for "Update Panel With ClientScriptManager"