04-26-04 11:43 PM
Hi Nancy,
I would use a user control rather than such inline code.
Cheers,
Stefan.
--
This posting is provided "AS IS" with no warranties, and confers no rights.
"Nancy Meyers" <anonymous@discussions.microsoft.com> wrote in message
news:477601c42bc3$e3eddc10$a301280a@phx.gbl...
> Hi - Does anyone have an idea of what I am doing wrong? I
> have a posting with a couple of custom properties that
> have values. In my Header control I have code like this:
>
> CustomPropertyCollection
> objCustomPropertyCol =
> CmsHttpContext.Current.Channel.CustomProperties;
> foreach(CustomProperty objCustomProperty
> in objCustomPropertyCol)
> {
> %>
> <meta content="<%=Server.HtmlEncode
> (objCustomProperty.Value)%>" name="<%=Server.HtmlEncode
> (objCustomProperty.Name)%>">
> <%
> }
>
> When I navigate to the page and View Source, I see the
> meta tags, but there are no values.
>
> Also, when I add a Trace to the page, I get no values in
> the trace. **However**, once I click on 'Switch to Edit'
> mode, the values show up. Are custom properties
> unavailable in regular viewing mode?
>
> Thanks.
>
[ Post a follow-up to this message ]
|