- TargetControlID : It set the ID of control which will be attached with RoundedCornersExtender.
- Radius : It is used to set the radius of corner. The default is 5.
- Corners : It is used to set the corner of the target element. There are different values for this. They are All, Buttom, ButtomLeft, ButtonRight, Left, None, Right, Top, TopLeft and TopRight.
- Color : It is used to set the color of corners.
Now we take a ASP.NET Web Application and then we use a RoundedCornersExtender control to our application. Follow the given steps.
Step 1 : Take a ASP.NET Web Application.
Step 2 : Go to Toolbox and take ScriptManager at first on the form.
Step 3 : Take a Panel and take three Labels, two TextBoxes and one Button control inside the Panel. Change the Text property of a Label and Button like in the following figure.
Step 4 : Go to the ToolBox and take a RoundedCornersExtender control.
Code on .aspx page
<asp:RoundedCornersExtender ID="RoundedCornersExtender1" runat="server">
</asp:RoundedCornersExtender>
Step 5 : Set the property of RoundedCornersExtender control.
<asp:RoundedCornersExtender ID="RoundedCornersExtender1" TargetControlID="Panel1" Color="Black" Corners="Bottom" runat="server">
</asp:RoundedCornersExtender>
Code on .aspx page