Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 当TextboxFor';@foreach循环下的s_C#_Asp.net Mvc_Twitter Bootstrap_Razor - Fatal编程技术网

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"});
}
可能重复的可能重复的可能重复的