How to give round corners to a Button control

Posted on 2009-02-20
Last Modified: 2012-06-21
Hello All,
I saw the video at URL(Below) to give round corners to controls using Ajax roundcorner extender

I followed the video and was able to get round corners for panel control and when I did the same for Button control I failed...Can anyone tell me if I can make use of roundcorner extender for button control? If not what is the best way to make a button with rounded corners...

Thank You
<%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">

<html xmlns="">

<head runat="server">

    <title>Untitled Page</title>  




    <form id="form1" runat="server">

    <div style="width: 224px; height: 149px">


        <asp:Panel ID="Panel1" runat="server" BackColor="#00FF99" Height="146px" 


            This is to Test the Panel


        <asp:Button ID="Button1" runat="server" Text="Try Me" BackColor="#00CCFF" />

        <asp:ScriptManager ID="ScriptManager1" runat="server">


        <cc1:RoundedCornersExtender ID="RoundedCornersExtender1" runat="server" TargetControlID ="Button1" Radius ="7" Corners ="All">






Open in new window

Question by:will110
    LVL 15

    Accepted Solution

    For buttons you'll need to use CSS, or an imagebutton.  Here is a nice little example of using CSS.

    Expert Comment

    The link proposed as solution is broken.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now