When I create the RoundedCornersExtender dynamicaly it doesn't seem to be possible to set the corners to anything other than All. In the below example, the panel just disappears.
Panel pnl = new Panel();
pnl.ID = "pnl";
pnl.Attributes["width"] = "100%";
pnl.CssClass = "controlHeader";
pnl.Controls.Add(new LiteralControl("TESTING"));
form1.Controls.Add(pnl);
AjaxControlToolkit.RoundedCornersExtender rce = new AjaxControlToolkit.RoundedCornersExtender();
rce.ID = "rce";
rce.TargetControlID = "pnl";
//rce.Corners = AjaxControlToolkit.BoxCorners.All; - this works!
rce.Corners = AjaxControlToolkit.BoxCorners.Top;
form1.Controls.Add(rce);
Comments: Workaround found, see comments.
Panel pnl = new Panel();
pnl.ID = "pnl";
pnl.Attributes["width"] = "100%";
pnl.CssClass = "controlHeader";
pnl.Controls.Add(new LiteralControl("TESTING"));
form1.Controls.Add(pnl);
AjaxControlToolkit.RoundedCornersExtender rce = new AjaxControlToolkit.RoundedCornersExtender();
rce.ID = "rce";
rce.TargetControlID = "pnl";
//rce.Corners = AjaxControlToolkit.BoxCorners.All; - this works!
rce.Corners = AjaxControlToolkit.BoxCorners.Top;
form1.Controls.Add(rce);
Comments: Workaround found, see comments.