IE 11 doPostPack and JavaScript Errors

IE 11 doPostPack and JavaScript Errors

Recently we've been hearing from our clients and partners about trouble with Internet Explorer 11 and certain links not working on their web sites.  Here are the typical conditions:

  • the site uses .NET 
  • the server and/or .NET instance on the server is a few years old
  • the host server may not have the latest .NET patches (i.e., .NET 4.5)
  • the links that are not working involve some form of postback; this can include buttons, image buttons and/or hyperlinks - any element that invokes postback.

If upgrading the server with a "hot fix" patch is not an option, there's another low-impact soltution that seems to do the trick:

In your master page (below the @ Master directive) add the following lines:

<script runat="server">

protected override void OnInit(EventArgs e)
{
Page.ClientTarget = "uplevel";
base.OnInit(e);

}
</script>

I wouldn't regard this as anything but an interim soltuion.  But for older sites this may be one of the only options.

Other resources:

Author

Rob Birdwell

comments powered by Disqus
back to top