Open Waves

Usefull Open Waves snippets

Posted on

When Condition is false, the markup (and method calls) inside <ThenContent> is not evaluated.

<ow:ConditionalPlaceHolder runat="server" Condition="<%# CurrentBlock.IsShowAllLinkVisible %>">
    <ThenContent>
        <a href="<%# CurrentBlock.GetCalendarListLink() %>" class="link-big special icon-big-square-right"><%# CurrentBlock.CalendarListText %></a>
    </ThenContent>
    <ElseContent>
        <p>ElseContent</p>
    </ElseContent>
</ow:ConditionalPlaceHolder>
Advertisements