回发间歇地不使用ASP。NET 3.5和IE ?

时间:2021-04-09 03:18:18

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

我们有一个ASP。NET应用程序,我们最近用IIS7和。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)

在这个新环境中,一些IE(6、7或8)上的用户正在经历奇怪的间歇问题,因为回发不使用ASP。净按钮。(你点击按钮,什么也没发生)

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.

这个问题偶尔发生。有时行得通,有时行不通。对于一些用户来说,键postback几乎从来都不工作(但有时是可以的!)让事情变得更复杂的是,有些带有asp.net按钮回发的页面总是可以工作的。

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.

其他页面包含“asp按钮”和“asp链接按钮”,其中的asp按钮回发通常不起作用,但是link按钮回发总是起作用的。

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

启用并运行Javascript。源文件确实包含有效的标记。

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.

起初我认为这是IE6的一个问题,但现在它已经被一个用户的机器上的IE7复制了。

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.

任何帮助、想法或指导都将受到极大的赞赏。我的精神已经到了尽头。

3 个解决方案

#1


2  

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

我知道这个主题很老了,但是我在代码中发现了同样的问题。

I am using the ComponentArt component library.

我正在使用ComponentArt组件库。

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.

在回发之后的某些情况下,带有codebehind的按钮将不再在IE中执行。我还注意到,当JS函数完成并返回true时,带有onClientSide单击的按钮将执行它们的回发。

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"

OnClientClick = " javascript:返回true "

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

任何已经在运行JS函数并返回true的按钮都可以正常工作。

#2


1  

See if this post helps? IE 6 treats buttons a little differently, especially if you have some name conflicts. I could see this being a problem for events if that is the case.

看看这篇文章是否有帮助?IE 6对按钮的处理有点不同,尤其是当你有名字冲突的时候。如果是这样的话,我可以看出这对事件来说是个问题。

#3


0  

Found the culprit.

发现罪魁祸首。

It was ComponentArt's 2007 Web.UI components that were being dropped on the page.

这是ComponentArt的2007年网络。被拖到页面上的UI组件。

Apparently the menu control mixed with the 3.5 framework causes wierd issues with postback not working.

显然,与3.5框架混合的菜单控件会导致回发不起作用的严重问题。

#1


2  

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

我知道这个主题很老了,但是我在代码中发现了同样的问题。

I am using the ComponentArt component library.

我正在使用ComponentArt组件库。

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.

在回发之后的某些情况下,带有codebehind的按钮将不再在IE中执行。我还注意到,当JS函数完成并返回true时,带有onClientSide单击的按钮将执行它们的回发。

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"

OnClientClick = " javascript:返回true "

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

任何已经在运行JS函数并返回true的按钮都可以正常工作。

#2


1  

See if this post helps? IE 6 treats buttons a little differently, especially if you have some name conflicts. I could see this being a problem for events if that is the case.

看看这篇文章是否有帮助?IE 6对按钮的处理有点不同,尤其是当你有名字冲突的时候。如果是这样的话,我可以看出这对事件来说是个问题。

#3


0  

Found the culprit.

发现罪魁祸首。

It was ComponentArt's 2007 Web.UI components that were being dropped on the page.

这是ComponentArt的2007年网络。被拖到页面上的UI组件。

Apparently the menu control mixed with the 3.5 framework causes wierd issues with postback not working.

显然,与3.5框架混合的菜单控件会导致回发不起作用的严重问题。