Html.DropDownList and dojo.byId

Ok, so maybe I’m doing it wrong..(that’s what she said)…and it would not be the first time.

dojo.byId(‘name’).value fails when using the Html Helper “Html.DropDownList” from ASP.NET MVC PR5 as seen below

   1:   <%'=Html.DropDownList("", "search_form_filter", ViewData())%>

Er..um…could it just be that dojo.byId does not return the display text when value is not explicitly defined in the dropdown…yeah..that’s probably it.

Share and Enjoy:
  • Digg
  • Facebook
  • del.icio.us
  • E-mail this story to a friend!
  • DotNetKicks
  • DZone
  • FriendFeed
  • Twitter

Related posts:

  1. dojo.connect, dojo.byId and dijit.byId
  2. Html.RenderUserControl and ASP.NET MVC Preview 5