Skip Navigation LinksHome >> Archives >> Meta Information in .Net (aspx) Websites Using Master Pages

Meta Information in .Net (aspx) Websites Using Master Pages

Problem:

Adding meta information, including but not limited to, title, description and keyword tags to your .Net (aspx) website using master pages.

Solution: Add these lines of code to your master page right under the <title> line:


Then each new page you create will have a section for you to add the meta information to. Then add these two lines to each "headerPlaceHolder":


The result should look like this:


Now you'll be able to update the meta information for each of your web pages even if you're using master pages.

Facebook Profile for Kandi Humpf    Wikicompany for K Squared    MySpace for Kandi Humpf    YouTube for kandi111777    View Kandi Humpf's profile on LinkedIn    Twitter Kandi111777    Picasa Photos by Kandi111777    Flickr Photos by Kandi111777    Valid XHTML 1.0 Transitional    Valid CSS!    Page copy protected against web site content infringement by Copyscape