Page.MetaDescription and Page.MetaKeywords in 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 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 4.0" />

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

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


Popular posts from this blog

How to create Rest API(Web API) with ASP.NET Core 1.0

Creating PDF with ASP.Net MVC and RazorPDF

Solution: gulp is not recognized as internal or external command- Visual Studio