.Net C# Dynamicaly Creating Page.Header Title, Keywords and Description. Web

using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using Accessibility;public partial class _Default : System.Web.UI.Page{

{
Page.Header.Title =
protected void Page_Load(object sender, EventArgs e)"Dynamicaly Titled Page";// VERSION 1: You can use Page.MetaDescription and Page.MetaKeywordsPage.MetaDescription =
Page.MetaKeywords =
"Dynamicaly Created Meta Data Description";"Dynamic, Created, Keywords";// VERSION 2: or use Page.Header.Keywords and Page.Header.DescriptionPage.Header.Keywords =
Page.Header.Description =
}
}
"More, Dynamic, Keywords";"More, Dynamic, Created, Keywords";

Comments

Popular posts from this blog

Umbraco - Reset the Admin Password via SQL Server

Create a .NET Contact Form that Gets the Last Url Visited in C# Can also be Used in Umbraco

Umbraco Macro for IFrame when Embedding Video, Vimeo Universal Player, or other types of IFrame on to a Page XSLT version and Razor Version