javascript - How to add span tag to button in asp.net c# -


i trying add spinner button. searched , found simplest way describe flion on link. dont know how add suggested button code asp.net button.

suggested code

<button class="btn btn-lg btn-warning"> <span class="glyphicon glyphicon-refresh spinning"></span> loading..</button> 

and code

<asp:button id="loginbutton" runat="server" onclick="button1_click" text="login" cssclass="btn btn-primary col-xs-12"/> 

you can use suggested code is. need use runat="server" access html button @ code behind. apart need setup onclick event this

<button class="btn btn-lg btn-warning" runat="server" onclick="button1_click" id="loginbutton">     <span class="glyphicon glyphicon-refresh spinning"></span>loading.. </button> 

Comments

Popular posts from this blog

How to provide Authorization & Authentication using Asp.net, C#? -

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

How to use Authorization & Authentication in Asp.net, C#? -