void RenderBeginTag(HtmlTextWriter w, Style s, WebControl wc)
{
WebControl c;
switch (RepeatLayout)
{
case RepeatLayout.Table:
c = new Table();
break;
case RepeatLayout.Flow:
c = new Label();
break;
case RepeatLayout.OrderedList:
c = new WebControl(HtmlTextWriterTag.Ol);
break;
case RepeatLayout.UnorderedList:
c = new WebControl(HtmlTextWriterTag.Ul);
break;
default:
throw new InvalidOperationException(String.Format("Unsupported RepeatLayout value '{0}'.", RepeatLayout));
}
c.ID = wc.ClientID;
c.CopyBaseAttributes(wc);
c.ApplyStyle(s);
c.Enabled = wc.IsEnabled;
c.RenderBeginTag(w);
}