.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";
{
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
Post a Comment