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.

Search This Blog
Loading...
About Me
My Photo

Full Stack Developer,Blogger,Microsoft Mvp, Mentor, Life long learner, 10+ Years of Experience for JavaScript, web and Microsoft technologies. ASP.NET MVC,Web Forms,C#,AngularJs,Golang
Mvp profile
Subscribe to my blog

Enter your email address:

Follow us on facebook
Blog Archive
Total Pageviews