Monday, July 20, 2009

Page.MetaDescription and Page.MetaKeywords in asp.net 4.0

As i have in my earlier post Search Engine optimization is necessary for every sites otherwise site will not have more users and viewers. For search engine meta tag are very important one Search engine crawler get information from this meta tags. There lots of meta tag but most important meta tag are keyword and description. From keyword meta tag search engine crawler get information about keyword for which they list this site page and from the description tag they will get descriptive information about particular page.

ASP.NET 4.0 introduces support for this. Now you can create your own meta tag keyword and description with the help of Page.MetaDescription and Page.MetaKeywords. It will render as same description and keyword meta tags in simple HTML Page. For example if you write following in your page_load event.

protected void Page_Load(object sender, EventArgs e)
{
Page.MetaDescription = "This page contains information about asp.net 4.0";
Page.MetaKeywords = "ASP.NET 4.0,Search Engine Optimization";
}
It will render meta tag as following.
<meta name="description" content="This page contains information about asp.net 4.0" />

<meta name="keywords" content="asp.net 4.0, Search Engine Optimization" />

So now with asp.net 4.0 you can do your site search engine optimization very easily and you don’t have to write code for that.
Share:

0 comments:

Post a Comment

Your feedback is very important to me. Please provide your feedback via putting comments.

Support this blog-Buy me a coffee

Buy me a coffeeBuy me a coffee
Search This Blog
Subscribe to my blog

  

My Mvp Profile
Follow us on facebook
Blog Archive
Total Pageviews