Hi all,
Can help me write code to display images from database. The code is in bold. Thank you.
@grid.GetHtml(tableStyle: "webgrid",
headerStyle: "webgrid-header",
footerStyle: "webgrid-footer",
alternatingRowStyle: "webgrid-alternating-row",
selectedRowStyle: "webgrid-selected-row",
rowStyle: "webgrid-row-style",
columns: new[] {
grid.Column("Product_Category", header: "Category", style: "to-the-center"),
grid.Column("Product_Type", header: "Type"),
grid.Column("Product_Code", header: "Code"),
grid.Column("Product_Name", header: "Name"),
grid.Column("Product_Brand", header: "Brand"),
**grid.Column("Product_Image",format:@<text><img src="@Href("~/Content/image/Cat")"/></text>),**
grid.Column("Product_Description", header: "Description"),
grid.Column("Product_Availability", header: "Availability")
})