Ok I gave up, I've been struggling with this problem the whole day. I would appreciate any kind of help
好吧,我放弃了,我一整天都在努力解决这个问题。我将不胜感激任何帮助
I have a page that contains a user control that is just a personalized dropdown list . I assign to each item the attribute onClick=__doPostBack('actrl',0)
.
我有一个页面,其中包含一个用户控件,它只是一个个性化的下拉列表。我为每个项目分配属性onClick = __ doPostBack('actrl',0)。
when I click the page postback fine and I got the expected results. However in IE6 my page doesnt' change to the new values loaded from the server.
当我点击页面回传很好,我得到了预期的结果。但是在IE6中,我的页面没有“更改为从服务器加载的新值”。
The weird thing is that when I shift + click on the link The page reload fine with all changes.
奇怪的是,当我移动+点击链接页面重新加载所有更改。
I tried to disable caching on the page but no luck.
我试图在页面上禁用缓存,但没有运气。
using all this code
使用所有这些代码
Response.CacheControl = "no-cache"
Response.AddHeader("Pragma", "no-cache")
Response.Expires = -1
Response.Cache.SetExpires(DateTime.UtcNow.AddMinutes(-1))
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Page.Response.Cache.SetExpires(DateTime.Now.AddDays(-30))
Page.Response.Cache.SetCacheability(HttpCacheability.NoCache)
Page.Response.Cache.SetNoServerCaching()
Page.Response.Cache.SetNoStore()
Response.Cache.SetNoStore()
Also when I debug the application I can see that the generated html to be rendred is correct, but it is not rendered.
此外,当我调试应用程序时,我可以看到生成的html为rendred是正确的,但它没有呈现。
This problem happens only in IE6.
此问题仅在IE6中发生。
I would appreciate any help .
我将不胜感激任何帮助 。
Thanks
2 个解决方案
#1
3
This is a known IE6 bug (#223) with magical HTTP get requests.
这是一个已知的IE6错误(#223),带有神奇的HTTP get请求。
See the bug here: http://webbugtrack.blogspot.com/2007/09/bug-223-magical-http-get-requests-in.html
请参阅此处的错误:http://webbugtrack.blogspot.com/2007/09/bug-223-magical-http-get-requests-in.html
It happens when an inline event handler causes a page change in IE6.
当内联事件处理程序在IE6中导致页面更改时,会发生这种情况。
#2
0
The problem is that IE6 is not reloading the page from the server (its just grabbing the cached copy), however on a form post IE6 SHOULD reload. Why are you adding the _doPostBack as an attribute, those should be autogenerated on any asp.net control that needs to post back.
问题是IE6没有从服务器重新加载页面(它只是抓取缓存的副本),但是在IE6的表单上应该重新加载。为什么要添加_doPostBack作为属性,这些应该在任何需要回发的asp.net控件上自动生成。
#1
3
This is a known IE6 bug (#223) with magical HTTP get requests.
这是一个已知的IE6错误(#223),带有神奇的HTTP get请求。
See the bug here: http://webbugtrack.blogspot.com/2007/09/bug-223-magical-http-get-requests-in.html
请参阅此处的错误:http://webbugtrack.blogspot.com/2007/09/bug-223-magical-http-get-requests-in.html
It happens when an inline event handler causes a page change in IE6.
当内联事件处理程序在IE6中导致页面更改时,会发生这种情况。
#2
0
The problem is that IE6 is not reloading the page from the server (its just grabbing the cached copy), however on a form post IE6 SHOULD reload. Why are you adding the _doPostBack as an attribute, those should be autogenerated on any asp.net control that needs to post back.
问题是IE6没有从服务器重新加载页面(它只是抓取缓存的副本),但是在IE6的表单上应该重新加载。为什么要添加_doPostBack作为属性,这些应该在任何需要回发的asp.net控件上自动生成。