Click here to Skip to main content
15,892,517 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
can we change the shape of button in asp.net, i can do this in windows but unable do this in asp.net
Posted
Updated 4-Nov-12 20:29pm
v2
Comments
Member 11135753 7-Oct-14 13:39pm    
how i can change the shape of button to oval shape in asp.net at window form

Hi,

You can use image button or use Css for that buttons.

Refer this links for samples

http://aspadvice.com/blogs/richc/archive/2005/05/24/2653.aspx[^]

http://www.4guysfromrolla.com/webtech/100601-1.shtml[^]

ImageButton Control in ASP.NET[^]

Hope this helps.
 
Share this answer
 
It will be more easy to put an image as button if that serves the purpose.

HTML
<img id="myOddShapeButton" src="~/buttons/myOddShapeButton.gif" alt="myOddShapeButton " title="My Odd Shape Button" style="cursor:pointer;" onclick="javascript:myOddShapeButtonClick();"></img>


If this doesn't fulfill your requirement, then I believe you will have to create your own button control.

Creating a Custom Rollover Button in ASP.NET[^]

http://net.tutsplus.com/tutorials/create-asp-net-server-controls-from-scratch/[^]

And there are many more article if you search.

Hope that helps
Milind
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900