2:14 AM -
Tech
No comments
A deadly node in asp DropDownList
Okie, it seems nothing simpler than that. Do a search (in case you do not remember the client functions name), you have a list of functions name like this page: http://www.dotnetfunda.com/tutorials/controls/dropdownlist.aspx
Make a simple code in your page:
var drpValuationName = FindSelectBoxByID("drpValuationName");But your dropdown never fires as you want it be ! Why ? Just a silly syntax error, try to replace "SelectedIndex" by "selectedIndex" :))
drpValuationName.SelectedIndex = 0;
alert(drpValuationName.SelectedValue);
I dont know why javascript distinguishs uppercase from lowercase in this case. I'm using .NET Framworks 3.5. Anyway, it swallows me a couple of houses before I discover it. It's a bloody experience :D
0 comments:
Post a Comment