This is the most simple way to assign Title and Meta data on content page having Master Page attached.
First add a Master Page in your .net website. The removes the title tag from the master page.
Then add new page to your website and attach the master page with removed title tags. Now in the Page Load event of content page add the following line.
Below is the simple code on Content Page.
First Import using System.Web.UI.HtmlControls Namespace
and Than
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
HtmlTitle title = new HtmlTitle();
title.Text = "Dynamic Page";
Header.Controls.Add(title);
HtmlMeta tag = new HtmlMeta();
tag.Name = "keywords";
tag.Content = "key1, key2, key3, key4";
Header.Controls.Add(tag);
HtmlMeta des = new HtmlMeta();
des.Name = "desription";
des.Content = "This is a dynamic description allocated to the page.";
Header.Controls.Add(des);
}
}
First add a Master Page in your .net website. The removes the title tag from the master page.
Then add new page to your website and attach the master page with removed title tags. Now in the Page Load event of content page add the following line.
Below is the simple code on Content Page.
First Import using System.Web.UI.HtmlControls Namespace
and Than
{
if (!IsPostBack)
{
HtmlTitle title = new HtmlTitle();
title.Text = "Dynamic Page";
Header.Controls.Add(title);
HtmlMeta tag = new HtmlMeta();
tag.Name = "keywords";
tag.Content = "key1, key2, key3, key4";
Header.Controls.Add(tag);
HtmlMeta des = new HtmlMeta();
des.Name = "desription";
des.Content = "This is a dynamic description allocated to the page.";
Header.Controls.Add(des);
}
}
Go now to Career in fashion design. Cloche hats worn with bob hairstyles were one of
ReplyDeletethe most famous of them all. Don't send original prints of your work essentials and other accessories. Baggy pants were also a popular trend in men's Fashion.
Tip #8 : Power suitThe single most important piece of advice to remember is to make sure that you know
the important role that a necktie can play when a man is not gay!
Virtual courses are ideal for this body shape.
Here is my web blog: Ao so mi nam