.NET DropDownList SelectedIndexChange Event Not Firing in IE 10

旧街凉风 提交于 2019-12-19 18:28:10

问题


In IE 10, when a drop down list selected item is changed, nothing happens. It doesn't post back. All other controls work except for drop down lists.

It appears to work when I switch to IE 10 compatibility mode.


回答1:


Scott Hanselman explains this on his blog.

http://www.hanselman.com/blog/BugAndFixASPNETFailsToDetectIE10CausingDoPostBackIsUndefinedJavaScriptErrorOrMaintainFF5ScrollbarPosition.aspx




回答2:


Do you have the ASP.net Hotfix for IE10 installed?




回答3:


Ok, this was a weird issue. The actual problem was that we had a web.config sitting in the very root of the application that had OLD, I'm talking ANCIENT browserCap definitions in there. I'm talking browserCap definitions for Windows TV kind of old.

We removed the browserCap definitions in this file, and all was fine.

If you run into this error, please check for any browser caps that are not in the immediate folder of your project (if you have that sort of setup).

The link in Michael's answer will most likely take care of you if you're experiencing this problem and do not have multiple web.config's in your project.



来源:https://stackoverflow.com/questions/13615446/net-dropdownlist-selectedindexchange-event-not-firing-in-ie-10

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!