I need to create <a>
tag via WebGrid
but it is not visible. Although it is under the output html.
How to fix it and make it visible?
HTML code:
@grid.GetHtml(
tableStyle: "grid",
headerStyle: "head",
alternatingRowStyle: "alt",
rowStyle: "row",
selectedRowStyle: "selected-row",
columns: grid.Columns(
grid.Column("ReceiptURL", "Receipt", format: (item) => @Html.Raw(string.Format("<a target='_blank' class='' href='{0}'></a>" ,@item.ReceiptURL)), style: "")
)
)
}
and HTML output:
<tr class="row">
<td><a target='_blank' class='' href='http://localhost:51381/Receipt/2bc1c02d-44a3-4a53-9255-98aa4a41cd53'></a></td>
</tr>
So <a>
is invisible. :(
Any clue?