html - How do I put a Bootstrap Glyphicon inside an asp:Button in ASP.Net? -
html - How do I put a Bootstrap Glyphicon inside an asp:Button in ASP.Net? -
i'm using bootstrap 3 in project, , want utilize bootstrap glyphicons in asp.net buttons.
here code used, though didn't work out (i got sample uses twitter bootstrap <span>
tags instead of <i>
tags):
<asp:button id="btnrandom" runat="server" text="<span aria-hidden='true' class='glyphicon glyphicon-refresh'> </span>" onclick="btnrandom_click" />
maybe should done.
how can work? in advance replies.
you have utilize asp:linkbutton instead of asp:button, here how works me using bootstrap 3 in asp.net web-application:
from code can create next work:
<asp:linkbutton id="btnrandom" runat="server" cssclass="btn btn-primary" onclick="btnrandom_click"> <span aria-hidden="true" class="glyphicon glyphicon-refresh"></span> </asp:linkbutton>
here illustration of utilize submit button text "submit":
<asp:linkbutton id="submitbtn" runat="server" cssclass="btn btn-primary" onclick="submitbtn_click"> <span aria-hidden="true" class="glyphicon glyphicon-ok"></span>submit </asp:linkbutton>
html asp.net twitter-bootstrap button aspbutton
Comments
Post a Comment