I encountered a problem that I could not understand. The client complained that the submit button does is not redirecting the users to the page he wanted. It just posts back. I was surprised, because I checked it before and "It works on my computer...".
When checking I found out that there is a problem only on IE., while FireFox redirects fine.
I was sure the problem is something with the HTML or JS, but when I debugged I saw that both browsers do the same thing until they get to the Response.Redirect in the code behind.
Why on earth should IE not commit this command? I wasted a lot of time until I found the solution in this article
www.dotnetspider.com/kb/Article654.aspx .
Apparently when you give an asp button an "OnClientClick" event handler, it does not stop him from posting back. and if in your JS function you perform a button.Click() action, that also posts back, your form is posted back twice. From this point IE will not redierct you to a different page, because it has another request from the previous page.
Luckily FireFox knows what to do in this situation.
What you should do is add 'return false' after calling the JS function (like this: OnClientClick="DisableDeleteButton(); return false;" ), that will stope the button from posting back by himself and the only post back will be from the function.
I hope this can save you some time, if you get stuck with something like this.
moshe