Showing posts with label SEO. Show all posts
Showing posts with label SEO. Show all posts

Saturday, April 16, 2011

How to add META keywords and Description in ASP.NET

HtmlMeta metaDesc = new HtmlMeta();

metaDesc.Name = "description";

metaDesc.Content = "Tips on roasting coffee at home";
Page.Header.Controls.Add(metaDesc);

HtmlMeta metaKey = new HtmlMeta();
metaKey.Name = "keywords";
metaKey.Content = "roast, coffee, home, tips";
Page.Header.Controls.Add(metaKey);



<meta name="description" content="Tips on roasting coffee at home" />
<meta name="keywords" content="roast, coffee, home, tips" />

Friday, April 15, 2011

How to Optimize your site for SEO in ASP.NET

Optimizing your site for SEO in ASP.NET

- Two new properties, MetaKeywords and MetaDescription, of the Page class
- New URL Routing support towards ASP.NET Web Forms
- New Response.RedirectPermanent() method