Using meta tags in asp.net 2.0 with a master page (extended @page directives)

Source: Internet
Author: User

Original address: Http://www.codeproject.com/KB/aspnet/PageTags.aspx

Author: Jim Azar

Introduced

The motherboard page is a very powerful feature in ASP.net 2.0, but it does not provide a basic approach to search engine optimization. If you want your Web page to be indexed and enhanced by search engines, then you need to specify a title and meta tag on each page. This article explains how to extend your asp.net page so that you can specify the description of your meta tag and the keyword of the meta tag in the @page instruction of your content page when using the motherboard page.

Background

When you want to optimize your Web page for search engines, setting the title tag of the page and the meta description of the page is one of the most important factors. The <title> and meta tags are actually in the HTML

 <!--page content-->
</body>

The text of the <title> label is displayed at the top of the browser. From the example below, you can see the <title> display in IE

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.