Viewstate view status and Seo website Optimization

Source: Internet
Author: User
Tags website performance

When Seo is performed on ASP. NET pages, a problem is that the view State viewstate is hidden. Viewstate occupies too many bytes, which has always been one of the key points of ASP. NET Website performance optimization (considering the page size and bandwidth usage, viewstate should be used properly ).ArticleFor Seo, most search engines define the boundaries of page grabbing, that is, they only capture the text content of the first several thousand bytes of the page, in addition, when the first 2kb of your page is viewstate garbage, your page may be penalized. In some special cases, viewstate may affect the search engine's webpage indexing.

ASP. net4.0 provides a new attribute: viewstatemode, which outputs more pure HTMLCode.

ASP. NET 3.5: The viewstate attribute of the page has two values: true and false"

ASP. NET 4.0: The viewstatemode attribute uses the enumeration quantity, which has three values: "enabled", "disabled", and "inherit ". Controls

The default value is "inherit", that is, inheritance.

Reasonable Use of ASP. NET Server controls and reduced redundant code (code optimization) during webpage design are the key to solving the problem.

Related Article

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.