Click here to Skip to main content
15,868,016 members
Articles / Web Development / HTML
Alternative
Tip/Trick

SEO optimization: add meta tags to ASP.NET page programmatically

Rate me:
Please Sign up or sign in to vote.
4.83/5 (3 votes)
23 Feb 2012CPOL 10.9K   2  
Using MasterPage.master for ASPX pages, in Visual Studio 2008 and 2010, an ASP content area is automatically created for use within the head section of the HTML code when you create a new page using a master page.If you aren't using Visual Studio, you can create a content area for the head...

Using MasterPage.master for ASPX pages, in Visual Studio 2008 and 2010, an ASP content area is automatically created for use within the head section of the HTML code when you create a new page using a master page.


If you aren't using Visual Studio, you can create a content area for the head section using ContentPlaceholderID="head".


Inside the ASP ContentID tag identified by ContentPlaceHolderID="head", you can place head tag information specific for that page.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
-- There are no messages in this forum --