Problem in displaying the selected value from dropdown in mozilla(C#)
I am using a list of SelectListItem in C# to populate the items of a dropdown. When I select another option, IE8 just updates the same displaying the selected value, but in Mozilla, the selected value is not displayed. I am using MVC 2.0. The whole page is reloaded with the selected option of the changed one. I am confirming by seeing the "view source". What might be the prob开发者_开发知识库lem with Mozilla?
Any help is greatly appreciated.
try doing this
<%= Html.DropDownList("CategoryId", (IEnumerable<SelectListItem>)ViewData["categories"])%>
or try to change control name..
精彩评论