Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to add image inside button in asp

Hi guys I want to know how to add image inside button in asp.net

   <asp:Button ID="Login" runat="server" Height="27px" OnClick="Login_Click"  Text="Log In " Width="92px" EnableTheming="True" /> 
like image 318
user3398348 Avatar asked Oct 22 '25 22:10

user3398348


1 Answers

Why don't you use just a asp:ImageButton Controls like

<asp:ImageButton ID="ImageButton1" ImageUrl="~/Images/bullet.png"  AlternateText="No Image available" OnClick="mymethod" runat="server" /> 

OR

<button id="Button1" runat="server"><img src="Images/save.png" />Save</button>
like image 190
Trikaldarshiii Avatar answered Oct 25 '25 10:10

Trikaldarshiii



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!