SEO Enhancements in ASP.NET 4.0
ASP.NET 4.0 is a web application development framework that ships with Visual Studio 2010.
With ASP.NET 4.0, you have excellent support for Search Engine Optimization. There are now two new properties in your Page class -- Keywords and Description. You can use the Keywords property to use a keyword for your search. The Description property of the Page class can be used to specify a text that describes the keyword.
Also, you can now provide SEO support in your ASP.NET 4.0 applications both programmatically as well as declaratively in your markup code. The code snippet below illustrates how you can achieve this programmatically:
public partial class TestWebForm : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { Page.Keywords = "SEO Optimization"; Page.Description = "SEO"; } }
To do the same declaratively, use the description and keyword meta tags in the header of your web page. That's it! You're done.