aspx Tutorial

NET Articles,jQuery demo, with jQuery, online tutorial,Jquery, SilverLight, Javascript,,JSON, MVC,.NET Articles,demo, Web Services,
Advertise Here


Get our toolbar!


Posted by Aamir Hasan   on Sunday, August 22, 2010 Total Views:  

In this Article, i will tell you  about two new properties added to the page in ASP.NET 4.O that are

  1. MetaKeywords
  2. MetaDescription

By using these two properties you can optimize your site for SEO.


List of keyword phrases that you are targets for specific page.


Meta Description is used to display the content of your page in your earch engines.

Note:Meta Description should not be more then 200 characters.


You can also set these two properties wthin the @Page directive at the top of .aspx pages as shown in below Figure 1.1

Figure 1.1

You can set these two properties programmatically within code-behind page classes as shown in Figure 1.2 . By using programmatically set keywords and description manually or reading them from database.

Figure 1.2

I am using firebug to display the HTML output as you can see in Figure 1.3. At @Page level and on Page Load meta keywords and meta descriptions render and meta tag are display under the head section of HTML output page.

Figure 1.3


In ASP.NET 4.0 it is very easy to declare the keywords and description for the pages. By using MetaKeywords and MetaDescription makes your Web site SEO friendly


Click here to download source code




Click here to see online Demo

Protected by Copyscape Online Plagiarism Tool

Add comment

  Country flag

  • Comment
  • Preview

Advertizement 1
Advertizement 2
Advertizement 3
Advertizement 4
Advertizement 5