Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
152 Points
88 Posts
Mar 22, 2011 08:13 AM|LINK
remove the value in the "text", and add cssclass
<asp:Button ID="btnApply" cssclass="Mybutton1" runat="server" Text="" OnClick="btnApply_Click" />
and in the css
.Mybutton1 { width: 60px; height:80px; background: url('images/myimages.jpg') no-repeat;}
instead the width and height write the height and the width of the picture
and instead the "images/myimages.jpg" write the address of the button image
please mark as answer if this post answered your question
danielezra
Member
152 Points
88 Posts
Re: How can i use the image in the asp button control
Mar 22, 2011 08:13 AM|LINK
remove the value in the "text", and add cssclass
<asp:Button ID="btnApply" cssclass="Mybutton1" runat="server" Text="" OnClick="btnApply_Click" />
and in the css
.Mybutton1 { width: 60px; height:80px; background: url('images/myimages.jpg') no-repeat;}
instead the width and height write the height and the width of the picture
and instead the "images/myimages.jpg" write the address of the button image
please mark as answer if this post answered your question