Last post Dec 17, 2020 04:15 PM by mgebhard
Member
55 Points
448 Posts
Dec 17, 2020 03:24 PM|joegreen2005|LINK
Hello,
In my view, I have following. I'm trying to display an icon instead of text link but I don't see icon. What am I doing wrong?
@Html.ActionLink(" X ", "ActionName","ControllerName", new { id = Model.Id, fileId = file.ReceiptId }, new { @title = "Delete", @class = "glyphicon glyphicon-trash" })
Joe
All-Star
52101 Points
23237 Posts
Dec 17, 2020 04:15 PM|mgebhard|LINK
joegreen2005 Hello, In my view, I have following. I'm trying to display an icon instead of text link but I don't see icon. What am I doing wrong? @Html.ActionLink(" X ", "ActionName","ControllerName", new { id = Model.Id, fileId = file.ReceiptId }, new { @title = "Delete", @class = "glyphicon glyphicon-trash" }) Joe
You are not following the syntax found in the reference documentation.
https://getbootstrap.com/docs/3.3/components/#glyphicons-examples
Use HTML rather than an Action link. The font icons expects an inline tag like a <span>.
Member
55 Points
448 Posts
Cannot display ActionLink as icon
Dec 17, 2020 03:24 PM|joegreen2005|LINK
Hello,
In my view, I have following. I'm trying to display an icon instead of text link but I don't see icon. What am I doing wrong?
Joe
All-Star
52101 Points
23237 Posts
Re: Cannot display ActionLink as icon
Dec 17, 2020 04:15 PM|mgebhard|LINK
You are not following the syntax found in the reference documentation.
https://getbootstrap.com/docs/3.3/components/#glyphicons-examples
Use HTML rather than an Action link. The font icons expects an inline tag like a <span>.