这里我有一个包含多个值的dropdownlist。用户可以通过单击值前面的复选框来选择任意数量的值,如下所示。以下是我的c#代码。@Html.DropDownList(m => m.Detail, new SelectList(ViewBag.detailList, "Value", "Text"), new { id = "det我使用下面的代码来获取这些值。但上面
我想根据所选的dropdownlist1项(来自表1)来显示我的dropdownlist2中的项(来自表2)。在下面的代码中,我只是尝试根据dropdownlist1中的值从table2中选择lang列值。。((只是插入到dropdownlist1中))代码正确吗?lang from table2 whereheatre=@d",connect.con());
da.SelectCommand.Parameters.