VS master configuration skills, vs configuration skills

Source: Internet
Author: User

VS master configuration skills, vs configuration skills

Use web. config to configure the master to facilitate master modification. solution:

1. Configure the following content in web. config:

<Configuration>

<System. web>

<Pages masterPageFile = "~ /Stie. Master (which can be modified here) "/>

</System. web>

</Configuration>

Note: make sure that there is only one <pages> configuration item in the configuration file. Otherwise, an error will be prompted.

2. To add a new page number, select "Web form containing the master page" and delete the "MasterPageFile" item in <% @ page>.

NOTE: If "MasterPageFile" is not deleted, the master page set on this page will be used.

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.