C# 当TextboxFor';@foreach循环下的s
请帮助我如何在C# 当TextboxFor';@foreach循环下的s,c#,asp.net-mvc,twitter-bootstrap,razor,C#,Asp.net Mvc,Twitter Bootstrap,Razor,请帮助我如何在@foreach循环下为@TextboxFor编写引导css类 foreach (MasterTable item in Model._ListMasterTable) { @Html.TextBoxFor(x => x._ListMasterTable, new { Value = item.Master_Name }); } 谢谢这样就可以了 foreach (MasterTable item in Model._ListMasterTable) {
@foreach
循环下为@TextboxFor
编写引导css类
foreach (MasterTable item in Model._ListMasterTable)
{
@Html.TextBoxFor(x => x._ListMasterTable, new { Value = item.Master_Name });
}
谢谢这样就可以了
foreach (MasterTable item in Model._ListMasterTable)
{
@Html.TextBoxFor(x => x._ListMasterTable, new { Value = item.Master_Name, @class = "YOUR BOOTSTRAP CLASS HERE"});
}
这应该可以
foreach (MasterTable item in Model._ListMasterTable)
{
@Html.TextBoxFor(x => x._ListMasterTable, new { Value = item.Master_Name, @class = "YOUR BOOTSTRAP CLASS HERE"});
}
可能重复的可能重复的可能重复的