Never been to CodeSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

Metadaten

<meta name="description" content="">
<meta name="keywords" content="">
<meta name="author" content="">
<meta name="copyright" content="">
<meta name="publisher" content="Alternative Aspect"> 
<meta name="robots" content="index, follow">
<meta name="revisit-after" content="14 days">
<meta http-equiv="content-language" content="en">
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Script-Type" content="text/javascript">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="stylesheet" href="css/layout.css" type="text/css">

Page header - Dinammically place meta tags and title in header

Dinammically place meta tags and title in header

this.Page.Title = dr1["page_title"].ToString();

            //keywords
            HtmlMeta keywords = new HtmlMeta();
            keywords.Name = "keywords";
            keywords.Content = dr1["site_keywords"].ToString();
            Page.Header.Controls.Add(keywords);

            //description
            HtmlMeta description = new HtmlMeta();
            description.Name = "description";
            description.Content = dr1["site_description"].ToString();
            Page.Header.Controls.Add(description);