Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 22, 2011 08:47 AM by stanly
Member
224 Points
149 Posts
Mar 11, 2011 09:05 AM|LINK
Example i am having a asp button which is used to save the data in the database using the event btnApply_Click.
My Requirement: I want to design the button like vista 3D button.
Contributor
4794 Points
947 Posts
Mar 11, 2011 10:50 AM|LINK
Simply you can use the <asp:imagebutton which will take ImagePath to be shown on button.
Mar 14, 2011 04:42 AM|LINK
I want to use only the <asp:Button not image button...
PLease help me
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
Star
13201 Points
2490 Posts
Mar 22, 2011 08:47 AM|LINK
Try like this.... change image url as you like... <asp:Button ID="Button1" runat="server" style="background-image: url('http://www.makemyhome.info/images/addtocart.png'); width: 105px; height: 30px; background-color:Transparent;" />
sathis_asp
Member
224 Points
149 Posts
How can i use the image in the asp button control
Mar 11, 2011 09:05 AM|LINK
Example i am having a asp button which is used to save the data in the database using the event btnApply_Click.
<asp:Button ID="btnApply" runat="server" Text="Apply" OnClick="btnApply_Click" />My Requirement: I want to design the button like vista 3D button.
iGulfam
Contributor
4794 Points
947 Posts
Re: How can i use the image in the asp button control
Mar 11, 2011 10:50 AM|LINK
Simply you can use the <asp:imagebutton which will take ImagePath to be shown on button.
My BLOG
sathis_asp
Member
224 Points
149 Posts
Re: How can i use the image in the asp button control
Mar 14, 2011 04:42 AM|LINK
I want to use only the <asp:Button not image button...
PLease help me
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
stanly
Star
13201 Points
2490 Posts
Re: How can i use the image in the asp button control
Mar 22, 2011 08:47 AM|LINK
Try like this.... change image url as you like...
<asp:Button ID="Button1" runat="server" style="background-image: url('http://www.makemyhome.info/images/addtocart.png'); width: 105px; height: 30px;
background-color:Transparent;" />
weblogs.asp.net/stanly