- I have a user control which has an update panel
- I am trying to execute a client side script from an async postback from a button inside the updatepanel
- I am using
ScriptManager.RegisterStartupScriptto execute the script but it never gets executed - The scriptmanager proxy is not inside the user control itself it is in the page containing the user control
- Is there any way round this problem?
Script registration:
ScriptManager.RegisterStartupScript(
this,
this.GetType(),
"CloseEdit",
"CloseEditModal();",
true
);
Thanks, Damien.