jump to navigation

ASP.NET 4.0,SEO and meta tags September 27, 2009

Posted by fofo in ASP.NET 4.0, Visual Studio 2010.
Tags: ,
trackback

I am thinking to create a new series of posts regarding ASP.NET and SEO (Search Engine Optimisation). I am going to start with this post , talking about some new features that make our asp.net apps more SEO friendly. At the end of the day, there is no point having a great application and somehow “scare” the search engines away. This is going to be a short post so let’s quickly have a look at meta keywords and ASP.NET 4.0.

Meta keywords and description are important elements of a page and make it search engine friendly. ASP.Net 4.0 added 2 new properties on the Page object to let us define the Meta Keywords and Description.

Create a simple asp.net application using Visual Studio 2010. In the Default.aspx.cs code behind file type

Page.MetaKeywords = “asp.net,vb,c#,css,html,”;

Page.MetaDescription = “This is my blog that focuses on ASP.NET.”;

Alternatively we can add those two meta tags in the Page directive

<%@ Page Language=”C#” MetaKeywords=”asp.net,vb,c#,css,html” MetaDescription=”This is my blog that focuses on ASP.NET.” AutoEventWireup=”true”  CodeFile=”Default.aspx.cs” Inherits=”_Default” %>

Run your application. Go to View->Source and see the meta tags

</title><meta name=”description” content=”This is my blog that focuses on ASP.NET.” /><meta name=”keywords” content=”asp.net,vb,c#,css,html” /></head>

Hope it helps!!!

Add to FacebookAdd to NewsvineAdd to DiggAdd to Del.icio.usAdd to StumbleuponAdd to RedditAdd to BlinklistAdd to TwitterAdd to TechnoratiAdd to Furl

Comments»

No comments yet — be the first.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: