Home > ASP.NET MVC, Dojo > Html.DropDownList and dojo.byId

Html.DropDownList and dojo.byId

September 16th, 2008

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
  • Print this article!
  • E-mail this story to a friend!
  • Google
  • description
  • description
  • Live
  • MySpace
  • Reddit
  • StumbleUpon
  • Technorati
  • Tumblr

ASP.NET MVC, Dojo

  1. No comments yet.
  1. No trackbacks yet.