tailieunhanh - ASP.NET 4 Unleased - p 28

Designing Websites with Master Pages .ad { margin-top:20px; } .clear { clear:both; } Default Master From the Library of Wow! eBook Creating Master Pages 245 The content page in Listing uses the Master Page in Listing . It does not include a Content control that corresponds to the contentAd control | 244 CHAPTER 5 Designing Websites with Master Pages .ad margin-top 20px .clear clear both style title Default Master title head body form id form1 runat server div class content div class leftColumn asp contentplaceholder id ContentPlaceHolder1 runat server div div class middleColumn asp ContentPlaceholder id ContentPlaceHolder2 runat server div div class rightColumn asp ContentPlaceHolder id contentAd Runat server asp Image id imgAd ImageUrl CssClass ad AlternateText Advertisement for Superexpert ASP Workshops Runat server asp ContentPlaceHolder div br class clear div form body html From the Library of Wow eBook Creating Master Pages 245 The content page in Listing uses the Master Page in Listing . It does not include a Content control that corresponds to the contentAd control in the Master Page. When you open the page in a browser the default banner advertisement displays. LISTING @ Page Language C MasterPageFile asp Content ID Content1 ContentPlaceHolderID ContentPlaceHolder1 Runat Server Content in the first column br Content in the first column br Content in the first column br Content in the first column br Content in the first column 5 asp Content asp Content ID Content2 ContentPlaceHolderID ContentPlaceHolder2 Runat Server Content in the second column br Content in the second column br Content in the second column br Content in the second column br Content in the second column asp Content Of course you do have the option of adding a Content control that overrides the default content contained in the contentAd control in the Master Page. For example you might want to display different banner advertisements in different sections of your website. NOTE You can nest ContentPlaceHolder controls in a Master Page. If you do this you have the option of overriding greater or smaller areas of content in the Master Page. Nesting Master Pages When building a large website you might need to create multiple .

TÀI LIỆU LIÊN QUAN
crossorigin="anonymous">
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.