M
Mark
here's what i've got so far in my code beind
if (SiteMap.CurrentNode != null) {
if (SiteMap.CurrentNode["metaKeywords"] != null)
{
strMetaKeywords = SiteMap.CurrentNode["metaKeywords"];
strMetaDescription = SiteMap.CurrentNode.Description;
}
else
{
strMetaKeywords = "this is a test";
}
}
if (!Page.IsPostBack)
Page.DataBind();
}
So, it pulls Description and metaKeyword from the siteMapNode and
populates the webform meta tags. It work well. What i'm not sure how
to do is populate steMetakeywords or strMetaDescription with content
if there is no siteMapNode for a given web form (that's what i'm
attempting to do in the ELSE statement).
any ideas?
if (SiteMap.CurrentNode != null) {
if (SiteMap.CurrentNode["metaKeywords"] != null)
{
strMetaKeywords = SiteMap.CurrentNode["metaKeywords"];
strMetaDescription = SiteMap.CurrentNode.Description;
}
else
{
strMetaKeywords = "this is a test";
}
}
if (!Page.IsPostBack)
Page.DataBind();
}
So, it pulls Description and metaKeyword from the siteMapNode and
populates the webform meta tags. It work well. What i'm not sure how
to do is populate steMetakeywords or strMetaDescription with content
if there is no siteMapNode for a given web form (that's what i'm
attempting to do in the ELSE statement).
any ideas?