You cannot use the ready-made version of this control, but you can easily change the source code to create your own version. Checkout AjaxControlToolkit \ Tabs \ TabContainer.cs (see below). You will need to reverse the order so that the RenderHeader () part appears below the RenderChildren () part. Alternatively, you can add a property to a control called "RenderHeaderFirst" or something similar to achieve the same functionality:
protected override void RenderContents(HtmlTextWriter writer)
{
Page.VerifyRenderingInServerForm(this);
writer.AddAttribute(HtmlTextWriterAttribute.Id, ClientID + "_header");
writer.RenderBeginTag(HtmlTextWriterTag.Div);
{
RenderHeader(writer);
}
writer.RenderEndTag();
if (!Height.IsEmpty)
writer.AddStyleAttribute(HtmlTextWriterStyle.Height, Height.ToString());
writer.AddAttribute(HtmlTextWriterAttribute.Id, ClientID + "_body");
writer.RenderBeginTag(HtmlTextWriterTag.Div);
{
RenderChildren(writer);
}
writer.RenderEndTag();
}
PS I have not tried this myself, but it seems to be in the right direction.
source
share