Я занимаюсь разработкой проекта ASP.NET MVC 5 EF6. Мне нужно понять наиболее правильный способ заблокировать / исправить таблицу заголовков и часть фильтра / кнопки на моей странице бритвы. Я не могу понять, смогу ли я сделать это, только используя стиль CSS.
Здесь код моей страницы:
@model IEnumerable<WebTest.EFView.VwOpenOrder>
@{
ViewBag.Title = "Index";
//Layout = "~/Views/Shared/_Layout.cshtml";
TempData["SearchLV"] = ViewBag.SearchLV;
}
<h2>Ordini Aperti</h2>
@using (Html.BeginForm())
{
<p>
<table class="table">
<tr>
<td>
Linea Vendita
</td>
<td>
@Html.TextBox("SearchLV")
</td>
</tr>
</table>
</p>
<p>
<input type="submit" value="Cerca" class="btn-default" />
</p>
<p>
<table>
<tr>
<td>@Html.ActionLink("Excel", "ExportToExcel", "VwOpenOrders", new { SearchLV = TempData["SearchLV"], SearchCustomer = TempData["SearchCustomer"], SearchTag = TempData["SearchTag"], SearchAcronym = TempData["SearchAcronym"] }, new { @class = "btn btn-default" })
}
</td>
</tr>
</table>
</p>
}
<table class="table">
<tr>
<th>
@Html.ActionLink("Linea Vendita", "Index", new { SearchLV = TempData["SearchLV"], SearchCustomer = TempData["SearchCustomer"], SearchTag = TempData["SearchTag"], SearchAcronym = TempData["SearchAcronym"], sortOrder = ViewBag.LVSortParm })
</th>
<th>
@Html.ActionLink("Cliente", "Index", new { SearchLV = TempData["SearchLV"], SearchCustomer = TempData["SearchCustomer"], SearchTag = TempData["SearchTag"], SearchAcronym = TempData["SearchAcronym"], sortOrder = ViewBag.CustomerSortParm })
</th>
</tr>
@foreach (var item in Model)
{
<tr>
<td>
@Html.DisplayFor(modelItem => item.linea_Vendita)
</td>
<td>
@Html.DisplayFor(modelItem => item.Cliente)
</td>
</tr>
}
</table>
Большое спасибо за помощь! =)