R – Postback intermittently not working with ASP.NET 3.5 and IE

.net-3.5asp.netiis-7internet explorerpostback

We have an ASP.NET application that we recently migrated onto a new server with IIS7 and .NET 3.5.

In this new environment, some users that are on IE (6, 7, or 8) are experiencing bizarre intermittent problems with postback not working on ASP.NET buttons. (you click the button and nothing happens)

The issue happens sporadically. Sometimes it works, sometimes it doesn't. For some users the button postback almost never works (but sometimes yes!). To complicate matters there are some pages with asp.net button postbacks that DO always work.

Other pages contain a mix of 'asp buttons' and 'asp link buttons', in which the asp button postbacks often don't work, but the link button postbacks always work.

Javascript is enabled and works. The source DOES contain valid tags.

I actually managed to take View Source snapshots of the same page when it was working and when it was not working and the source was EXACTLY the same!!!

At first I thought it was a problem with IE6, but it's now been reproduced on IE7 on one user's machine.

How would I even BEGIN to tackle this problem?

Any help, ideas, or guidance would be vastly appreciated. I am at the end of my mental rope here.

Best Answer

I know this topic is pretty old, but I found the same problem in my code.

I am using the ComponentArt component library.

In certain circumstances after a postback, buttons with codebehind will no longer execute in IE. I also noticed that buttons with onClientSide clicks would execute their postback when the JS function completes and returns true.

I was able to get all the buttons on the page to submit by adding the following code to my buttons:

OnClientClick="javascript:return true"

Any buttons that are already running a JS function and returning true, should work without issue.

Related Topic