导航

2011年1月13日

摘要: I am trying to use the Html.ListBoxFor helper to show a list box and return the selected Id. Is there a problem with the dataValueField not being a string? If the SelectList contained in the model uses integers as the dataValueField then I get a "Value cannot be null - Parameter name: Source" e 阅读全文

posted @ 2011-01-13 22:14 Trible.H 阅读(745) 评论(0) 推荐(0)

摘要: function ListBox_Move(listfrom,listto) { var size = $("#" + listfrom + " option").size(); var selsize = $("#" + listfrom + " option:selected").size(); if(size0 && selsize0) { $.each($("#"+listfrom+" option:selected"), function(i,own){ // var sText = $(own).text(); // var sValue = $(own).val 阅读全文

posted @ 2011-01-13 21:48 Trible.H 阅读(520) 评论(1) 推荐(0)