More simple goodies: setting the meta keywords and description from the server side

This is the first post of the year! I guess that means I’ll need to wish you all a fantastic New Year and I really hope that everything you wish comes true!

Now, this is really a short post about two simple new properties that have been added to the Page class: MetaDescription and MetaKeywords. In fact, these are really simple shortcuts for the Description and Keywords properties exposed by the HtmlHead class (oh, btw, you can get access the header by using the Header property exposed by the Page class and this will only return a valid reference when you have a <head> element annotated with a runat=”server” attribute). As you’ve probably guessed, you can use the MetaDescription property to set the “description” <meta> element. On the other hand, you can use the MetaKeywords to set the keywords  <meta> tag.

As I’ve said before, these are really simple additions. But it’s also important to notice that adding simple features which make our lives easier end up contributing to improving the framework, right? And that’s it for today. Keep tuned for more on ASP.NET.


~ by Luis Abreu on January 4, 2010.

One Response to “More simple goodies: setting the meta keywords and description from the server side”

  1. If people are willing to see more facts about this good topic, they should purchase written essays or buy an essay with the help of writing services.

Leave a Reply

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

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

Google+ photo

You are commenting using your Google+ 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 )


Connecting to %s

%d bloggers like this: