Last post Jun 19, 2009 12:11 PM by Evan Freeman
Jun 19, 2009 10:55 AM|DotNetGirl371|LINK
How to create Curved content box Custom control using CSS..
Where i can chnage the curve style .. like curved , diagonal , sruare etc without using image ..
It can be used like
<ccb:ContentBox ID="ContentBox1" runat="server" >
<asp:Label ID="label1" runat="server"></asp:Label>
and in code behind
Jun 19, 2009 12:02 PM|jamesqua|LINK
Scott Mitchell wrote a blog post for a rounded corner server control
Jun 19, 2009 12:02 PM|Evan Freeman|LINK
So you want to create a templated control. That is alot of work. Truely alot of work.
Thats a good starting link. As to the CSS it's all in how you generate the markup. There are enough resources to googl that I won't list them here.
Jun 19, 2009 12:11 PM|Evan Freeman|LINK
Actually I was thinking about it and there is an easier way to do this.
You would just create a control thast inherit from Panel, and override the RenderBeginTag and RenderEndTag methods to add your custom markup.
public class RoundedCornersPanel : System.Web.UI.WebControls.Panel
public override RenderBeginTag (HtmlTextWriter writer)
writer.Write("Your rounded corner opening markup");
public override RenderEndTag (HtmlTextWriter writer)
writer.Write("Your rounded corner closing markup");