开发者

Problem in displaying the selected value from dropdown in mozilla(C#)

开发者 https://www.devze.com 2022-12-18 05:54 出处:网络
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

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..

0

精彩评论

暂无评论...
验证码 换一张
取 消