Master Page in C#-webform-★asp.net ★

Source: Internet
Author: User

What is the master page, as the name implies that the master is a template, like in the PPT inside the plate or theme, the big frame has been, our task is to add concrete content inside. This way, all the slides we make are generally the same look.

In ASP., the master page has two functions, one is to improve the reuse of the code (the same code is extracted), and the other is to keep the entire site consistent style and style.

First, new master page Add new item → master page

Master Page code:

Ii. How to apply add New item → new Web form → select master page → Select Master

The page is as follows:

Third, add a new text location reservation

Iv. How to transfer values to a master page in a child page

(1) button click event

(2) MP2 received in the master version of the value passed to MP2 TextBox1, and passed to MP1

If there is a Web page Web1 in a folder, the CSS file referenced in the master is applied to the master, the WEB1 will automatically complete the CSS path, but if it is a JS file, it will not

What can I do to make the JS path in the master path absolute?

Master Page in C#-webform-★asp.net ★

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.