RinzLove 0 Newbie Poster

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")
})
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.