日期:2014-05-20  浏览次数:20644 次

求助,请高手帮忙~在线等待~
在ASP.NET MVC3中我想实现省市、区的联动,使用@Html.DropDownListFor,应该怎么来实现呢,自己想了半天没有想出来,请高手帮忙~

<td height="35" align="left" valign="middle" width="130">
                                                        @Html.DropDownListFor(m => m.Address.ProvinceName, new SelectListItem[] { new SelectListItem { Text = "请选省市", Value = "0" }, 
                                                         new SelectListItem { Text = "北京市", Value = "北京市" }, new SelectListItem { Text = "上海市", Value = "上海市" } })
</td>


<td height="35" align="left" valign="middle" width="130">
    <select name=""><option>---请选择市---</option></select>
</td>
------解决方案--------------------
MVC3还真不怎么会 反证一般是这个思路 当第一个下拉框的索引改变的时候 获取第一个框的索引然后去数据库查
查找到跟第一个框索引相关的值绑到第二个框中  
不知道对不对 勿喷
------解决方案--------------------

给个地址,下来看看!

------解决方案--------------------
学习了。