Fehlerbeschreibung:

RegisterStartupScript not executed with UpdatePanel

 

Lösung in ASPX:

ScriptManager.RegisterStartupScript(this.updatePanel, typeof(string), "alertScript", "alert('Error Message');", true);

UpdatePanel is the name of the panel that the event resides in. I had problems getting this to work in the item_updated event, but it worked fine when I registered this script on the link button click.

protected void UpdateButton_Click(object sender, EventArgs e)
{
    ScriptManager.RegisterStartupScript(mrFormView, typeof(Page), "RefreshParentScript", "window.opener.location.reload();", true);
}