When I try to call a javascript function from my C# code behind using the following method:
ScriptManager.RegisterStartupScript(Page, typeof(Page), "CallJSFunction", "JSFunction();", true);
The javascript function itself is as follows:
function JSFunction() {
document.getElementById('ABC').scrollIntoView(true);
}
Unfortunately, the javascript doesn't execute when called from the code behind due to an ajax control UpdatePanelAnimationExtender in my ascx code. Is there a workaround for this problem? How can I resolve this issue?