asp.net Dropdownlist onselectedIndexChanged does not fire in IE 10

I have simple (no ajax, no update panels) Asp.net application with a form which contains a server side DropdownList control. It works fine in all browsers except IE 10. DropdownList does not fire OnSelectedIndexChanged event. If I enable Compatibility view in IE 10 again it works. But I’m not able to get it working for normal mode in IE 10.

I read – .NET DropDownList SelectedIndexChange Event Not Firing in IE 10 and subsequent links in the answers. But nothing has helped yet. Anybody else has encountered this issue before?

Answers:

Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.

Method 1

yes it wont work… it is IE10 draw-back.

To make it work properly, you need to make you application IE10 compatible by adding a file “ie.browser” in App_Browser folder…
Check this out

Method 2

The issue is ASP.NET browser definitions do not recognize IE10 so it defaults to a down-level definition, which has certain inconveniences, like that it does not support features like JavaScript.

An alternative to the machine wide hotfix(s) or site level App_Browser solutions is to simply add Page.ClientTarget = “uplevel” to the Page_Init method in the code behind.

Example:

private void Page_Init(object sender, EventArgs e)
{
    Page.ClientTarget = "uplevel";     
}


All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x