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.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
annirPosted Sep 1, 2008, 8:47 AM
thanks for the code :p
annir
Blocked AccountPosted Sep 1, 2008, 3:19 AM
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!!
siguo zhangPosted Sep 1, 2008, 3:17 AM
annirPosted Sep 1, 2008, 3:12 AM
can i ask if what is your code in CssClass="LinkNormalStyle"
thanks...
annir
annirPosted Sep 1, 2008, 3:09 AM
Im not using the windows application. BTW thanks for the answer..
annir
Blocked AccountPosted Sep 1, 2008, 3:04 AM
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!!
snehal mPosted Sep 1, 2008, 2:59 AM
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.