rlull
-
11/26/2013 9:52:12 AM
RE:Conditional layout based on querystring parameter
Yes, that's what I expected to happen. However, if I use the following code in the Layout on the template, when I switch to the Design tab, I see the following error.
<cms:CMSConditionalLayout runat="server" id="cl2" Visible='<%# NotEquals(Request.QueryString["DCI"], "5") %>'> <cms:CMSWebPartZone ZoneID="zoneArticles" runat="server" /> </cms:CMSConditionalLayout>
[Error loading the layout] http://server/CMSVirtualFiles/Templates/Shared/=vg=a705a120-263e-4931-afc4-36ef96ec985a/Resources-Listing_1.ascx(9): error CS0103: The name 'NotEquals' does not exist in the current context
|