Return to doc.sitecore.com

  Replacing Webcontrols
Prev

This section contains information about replacing Sitecore 4 WebControls with equivalent Sitecore 5 Controls.

1.  generator and iteminfo

When performing a migration from version 4 to version 5, replace generator and sc_iteminfo webcontrols shown below

  <sc:generator runat="server" id="Generator1" />

  <sc:iteminfo runat="server" id="Iteminfo1" />

with the following meta tags:

  <meta name="generator" content="<%# Sitecore.Configuration.About.VersionInformation() %>" >

  <meta name="sc_iteminfo" content="path=<%# Sitecore.Context.Item.Paths.Path.ToLower() %>; id=<%# Sitecore.Context.Item.ID.ToString() %>" > 


Prev