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.