MVC 4
とでWebプロジェクトに取り組んでいRazor
ますC#
。私は@Html.DropDownList
その表示項目を動的に使用しました。
ToolTip
のすべてのアイテムに設定したい@Html.DropDownList
。これは私のコードです:
@Html.DropDownList("Config_Industry", ViewBag.Industry as IEnumerable<SelectListItem>, "Please Choose Item", new
{
@class = "drpDownCustomEngineered",
@style = "width: 258px;"
})