How can I use a:
<i class="icon-etc"></i>
with an asp.net button?
LinkButton, like this...
<asp:LinkButton ID="SelectButton" runat="server" CssClass="btn btn-info"><i class="icon-ok icon-white"></i> Select</asp:LinkButton>
You may add the <i>
tag as a value to the LinkButton
Text
attribute.
e.g.
<asp:LinkButton ID="btnExcluir" runat="server" Text="<i aria-hidden='true' class='icon-remove-3'></i>" CssClass="btn btn-danger" />
You can even use it with a side text.
e.g.
<asp:LinkButton ID="btnExcluir" runat="server" Text="Link Name <i aria-hidden='true' class='icon-remove-3'></i>" CssClass="btn btn-danger" />
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With