Hi guys,
can anyone knows how can I create a button with picture and text on it.
Ex: (Image)Save
Thanks.
annir
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend4days leftRegister
snehal m24 reputationPosted Aug 31, 2008, 10:59 PM EDT
Hi,
It,s so simple.Take one button on your form. Right click on that button and select properties. In properties window select image and import the image u want. Now select text in Properties window and type the text you want.
Blocked AccountRank #403 · 6.2K reputationPosted Aug 31, 2008, 11:04 PM EDT
Hi,
you can display image and text by using this code. Here I have taken the link button.
<asp:LinkButton ID="LinkButtonEmail" runat="server" CssClass="LinkNormalStyle" OnClick="LinkButtonEmail_Click"><img style="border:0px; vertical-align:middle" src="/Images/Articles/ButtonImages/Email.gif" /> Emailasp:LinkButton>
Happy Coding!!
annir12 reputationPosted Aug 31, 2008, 11:09 PM EDT
Im not using the windows application. BTW thanks for the answer..
annir
annir12 reputationPosted Aug 31, 2008, 11:12 PM EDT
can i ask if what is your code in CssClass="LinkNormalStyle"
thanks...
annir
siguo zhang2 reputationPosted Aug 31, 2008, 11:17 PM EDT
Blocked AccountRank #403 · 6.2K reputationPosted Aug 31, 2008, 11:19 PM EDT
Hi,
That css class is used only for display the text. here i am writing the code which i am using on that CSS class.
a.LinkNormalStyle:active, a.LinkNormalStyle:visited, a.LinkNormalStyle:link
{
color: #3366CC;
text-decoration: none;
}
a.LinkNormalStyle:hover
{
color: green;
}
Happy Coding!!
annir12 reputationPosted Sep 1, 2008, 4:47 AM EDT
thanks for the code :p
annir