.NET DropDownList SelectedIndexChange Event Not Fi

2020-04-04 10:45发布

问题:

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.