I create a tabcontainer that displays information from partials. The code I created looks like this:
foreach (var tab in m_tabList)
{
sb.AppendLine("<div class='tabContent'>");
m_helper.RenderPartial(tab.PartialName);
sb.AppendLine("</div>");
}
This will not work because renderpartial writes directly to the output stream. I also cannot show a partial row. to add it to the stringbuilder object.
Any suggestions?
source
share