I was using the following script to call a javascript function only if my page in Edit Mode:
protected void Page_PreRender(object sender, EventArgs e)
{
if (EditMode)
ClientScript.RegisterStartupScript("".GetType(),
"EnableSelectableKey",
"EnableSelectableForRolesLists();",
true);
}
After I added an update panel, the script has not been called.
How to fix the problem?