Click here to Skip to main content
15,795,861 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
Dear Experts,

I am Doing an project. And i am confused in my button Styling....
Actually i get the button Desing code below..

<button id="btnSave" class="button glossy mid-margin-right" runat="server" onserverclick="btnSave_Click">
                            <span class="button-icon"><span class="icon-tick"></span></span>
                            Save Student

But i need to convert to button...

<asp:Button ID="Button1" class="button glossy mid-margin-right button-icon icon-tick" runat="server" Text="Button" />

In Html Button the designer call the class function in Span tag.. but i think we can't add the span inside the button control...

Then how to use these class.. Please help me..

Thanks and Regards,

ZurdoDev 28-Jan-14 9:33am    
Perhaps what you want is an ImageButton then? However, you can leave it as a button.
JoCodes 28-Jan-14 9:52am    
Why not use asp button then?
Lin Jiamei 28-Jan-14 12:35pm    
Are you really supposed to use a button? If not, I suggest using a link button and add the glossy html design. So it will be like you still have the html button but the clickable area is just the link button.
vblover Programmer 25-Jun-22 14:12pm    
hi, why you don't use theme for your page?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900