大家好,我有一个Mvc appliaction。在那我有像
的代码<div>
@Html.MyCustom.LabelFor(model => model.Phone)
</div>
<div>
@Html.EditorFor(model => model.PhoneNo, new {Css = "c10"})
</div>
<div>
@Html.MyCustom.LabelFor(model => model.productList)
</div>
<div>
@Html.Kendo().DropDownListForr(model => model.productList, new {Css = "c10"}).BindTo()......
</div>
在我生成Labelfor代码的MyCustom类中,我想识别下一个控件渲染,即EditorFor和第二个Dropdownlist
我正在生成标签的属性,因此对于编辑器我必须生成Label_PropertyName(电话),对于dropdownlist,我必须生成Drop__PropertyName(productList)