asp.net master Page How to use _ Practical tips

Source: Internet
Author: User

A lot of students in computer science are nearing graduation, just hurry how to do a graduation design to carry out a reply, a very short time is impossible to complete, today on the pace of the small series, Learning asp.net master page of the use, quickly grasp this practical skills, I believe that in everyone's graduation design process to play a huge role.

Tools/raw Materials
Visual Studio 2008
Method/Step
Open Visual Studio 2008, click "File" "Open Web Site" to locate the site root folder, click "Open"

Right-click in the site root directory and select Add New Item

In the pop-up "Add New Item" Select "Master Page" by default use the name, click "Add"

To open the split interface of the master page, we can see that there is a "ContentPlaceHolder" element in the page view

The page element "ContentPlaceHolder" inside Place is the child page The thing, we each page different place uses this, therefore first copies the page element to the master page

Master page code

"<asp:contentplaceholder id=" ContentPlaceHolder1 runat= "Server" > sub-page Content </asp:contentplace Holder> "

Used to display different page difference sections

Note that the master page must be stored in the root directory of the Web site so that you can call

The above is to share with you the ASP.net master page How to use the graphical tutorials, you can also combine the previous article ASP.net master page basic knowledge to learn, there may be unexpected receipts.

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.