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?
Have a look at: http://msdn.microsoft.com/en-us/library/bb383810.aspx
This should point you in the right direction 🙂