<cms:queryrepeater StopProcessing="false" runat="server" ID="rLatestNews" WhereCondition="" QueryName="custom.news.FilterByBusinessAndRegion" TransformationName="custom.news.NewsLatestSetPath" OrderBy="NewsReleaseDate DESC" />
Is there a k# equivalent to ASCX transformation controls?
I am creating a dynamic spotlight section on my homepage and I am using a type variable to populate the boxes. Problem is:
<% if (Convert.ToInt32(Eval("SpotlightType")) == 2) { %>
<td>
<%# Eval("SpotlightCustomText")%>
<a href="<%# Eval("SpotlightURL")%>" class="more">Learn More</a>
</td>
<%} %>
This doesn't work. Oddly I have code where something like this does work, but in this case it either gives me a string vs integer error, or as in this case it simply does not evaluate.
I have however gotten this to work in k#, but I need a nested repeater so that I can add the option for a "Latest News" box. Just don't know the syntax to do that in K#.
Any help would be appreciated.