-->

Saturday, May 25, 2013

Computer Programming : How to use RoundedCornerExtender in ASP.NET with Example

Computer Programming : How to use RoundedCornerExtender in ASP.NET with Example

Computer Programming: As the name suggest , RoundedCornerExtender attaches and makes the corners of any ASP.NET controls round . It adds a background panel to any ASP.NET control so that the control appears with rounded corners. The overall height of the original control changes slightly . RoundedCornersExtender has only three important properties such as:

TargetControlId : Set the ID of the control whose corners are to be modified .

Radius : Set the Radius of the control corners . By default the value is 5 pixel.

Corners : Set the corners of the target control , which you want to round.

Before copy this code please add ajax ControlToolkit to your website/project

Lets Take an Example



<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Roundcorneraspx.aspx.cs" Inherits="Roundcorneraspx" %>

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

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
</head>
<body>
<form id="form1" runat="server">
<asp:ScriptManager ID="ScriptManager1" runat="server"></asp:ScriptManager>
<div>
<asp:Panel ID="Panel1" runat="server" Width="300px" Height ="200px">


This is my panel control

visit : http://dotprogramming.blogspot.com

 

 
 
</asp:Panel>
<asp:RoundedCornersExtender ID="RoundedCornersExtender1" runat="server" TargetControlID ="Panel1" Radius ="10" Corners ="All" BorderColor ="SkyBlue" Color ="Black">


 
 
</asp:RoundedCornersExtender>
</div>
</form>
</body>
</html>

OutPut

Read other related articles

Also read other articles

© Copyright 2013 Computer Programming | All Right Reserved