MVC Webgrid に画像を保存するには? また、WebGrid で画像列を生成する方法は...?
<div id="grid" class="Radius">
@grid.GetHtml(
tableStyle: "listing-border",
headerStyle: "gridhead",
footerStyle: "paging",
rowStyle: "td-dark",
alternatingRowStyle: "td-light",
mode: WebGridPagerModes.All,
firstText: "<<",
lastText: ">>",
previousText: "<",
nextText: ">",
columns: grid.Columns(
grid.Column(format: (item) => Html.CheckBox("check", false)),
grid.Column("ID"),
grid.Column("FirstName"),
grid.Column("LastName"),
grid.Column("EmailAddress"),
grid.Column("UserPicture"),
grid.Column("IsActive"),
grid.Column(header: "Edit", format: @<text><a href="@Url.Action("CreateUser", "User", new { ID = item.ID })" ><img src="~/Images/Edit.png" alt="" style="border:none;" /></a></text>, style: "colOperation"),
grid.Column(header: "Delete", format: @<text><a href="@Url.Action("", "", new { ID = item.ID })" ><img src="~/Images/Delete.png" alt="" style="border:none;" /></a></text>, style: "colOperation")
)
)
</div>