本文主要是介绍个别元素的绑定(%:Html.DropDownListFor()%),希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
<%:Html.DropDownListFor(x => x.ProvinceId, new SelectList((IEnumerable)ViewBag.Provinces, "Id", "Name"), "---请选择省份---")%><%:Html.DropDownListFor(x => x.CityId, new SelectList((IEnumerable)ViewBag.Cities, "Id", "Name"), "---请选择城市---")%>
<%:Html.RadioButtonFor(x => x.Sex, "男")%>男
<%:Html.RadioButtonFor(x => x.Sex, "女")%>女
<%:Html.RadioButtonFor(x => x.Sex, "保密")%>保密
这篇关于个别元素的绑定(%:Html.DropDownListFor()%)的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!