Quantcast
Channel: DevNet Questions
Viewing all articles
Browse latest Browse all 8914

Inline Widgets in Kentico Repeater

$
0
0
I have a repeater that evaluates the content field from a page. This content may have inline widgets in it:Now, normally I would wrap Eval("Content") in a placeholder with EnableViewState="false" and then resolve it dynamically in code behind but the problem is that the repeater repeats the ID for the placeholder rendering it invalid.Is there anyway around this?@cms:CMSUniView ID="MainNavMenu" runat="server" @ @HeaderTemplate@ @ul@ @li@ @/HeaderTemplate@ @ItemTemplate@ @a href="@%# Eval("Link") %@" title="@%# HTMLHelper.HTMLEncode( Convert.ToString(Eval("DocumentName"))) %@" @ @%# HTMLHelper.HTMLEncode( Convert.ToString(Eval("DocumentName"))) %@ @/a@ @%# Eval("Content") %@ @/ItemTemplate@ @SeparatorTemplate@ @/li@ @li@ @/SeparatorTemplate@ @FooterTemplate@ @/li@ @/ul@ @/FooterTemplate@ @/cms:CMSUniView@

Viewing all articles
Browse latest Browse all 8914

Trending Articles