Chapter 5
ហោ សូ ហនឿនASP.NET (Master Page) 1
Introduction
ហោ សូ ហនឿនASP.NET (Master Page)2
 Master pages are an easy way to provide a template that can
be used by any number of ASP.NET pages in your
application.
 In working with master pages, you create a master file that is
the template referenced by a subpage or content page.
 Master pages use a .master file extension, whereas content
pages use the .aspx file extension you’re used to; but content
pages are declared as such within the file’s Page directive.
 You can place anything you want to be included as part of the
template in the .master file.
 This can include the header, navigation, and footer sections
used across the Web Application.
 The content page then contains all the page content except
for the master page’s elements. At runtime, the ASP.NET
engine combines these elements into a single page for the
end user.
Consideration for a Master Page
ហោ សូ ហនឿនASP.NET (Master Page)3
 The website’s name on the top of the page
 A navigation breadcrumb at the top of the page
 A navigation TreeView on the left of the page,
showing the site’s structure
 A copyright statement and a series of links
Creating a New Master Page
ហោ សូ ហនឿនASP.NET (Master Page)4
Adding “contentPlaceHolder” a Master Page
ហោ សូ ហនឿនASP.NET (Master Page)5
Attaching a Master Page to a Web Page
ហោ សូ ហនឿនASP.NET (Master Page)6
 Create a master page that specifies the common,
site wide user interface elements and the regions
that are customizable on a page-by-page basis.
 Create the site’s ASP.NET pages, with the pages
configured to use the master page created in step 1.
Coding a Content Page
ហោ សូ ហនឿនASP.NET (Master Page)7
Master Page
ហោ សូ ហនឿនASP.NET (Master Page)8
សំនួរ រំលឹក និងស្រាវជ្រាវ
ហោ សូ ហនឿនASP.NET (Master Page)9
1. ត ើ Master Page មានជ្ររតោជន៏អ្វីដល់ការរតងកើ
Website?
2. ត ើ ContentPlaceHolder ាអ្វី?
3. ត ើព ៌មានអ្វីខ្លះគួរជ្រ ូវបានដាក់តលើ Master Page?
4. ត ើ thems ាអ្វី?
5. ត ើ Skins ាអ្វី?
6. ត ើតគរតងកើ Nested Master Page ដូចតតេច?

More Related Content

PPT
Master pages
PPTX
Master page
PPTX
asp.net Webconfiguration
PPTX
Master Pages In Asp.net
PPTX
Themes
PPTX
DrupalTour. Vinnytsia — SASS and Drupal themes (Olexander Kuzava, InternetDev...
PPT
Brand Studie 2009
Master pages
Master page
asp.net Webconfiguration
Master Pages In Asp.net
Themes
DrupalTour. Vinnytsia — SASS and Drupal themes (Olexander Kuzava, InternetDev...
Brand Studie 2009

Viewers also liked (19)

PDF
8 steps to broadcast digital signage using NoviSign
PDF
March2004-CPerlRun
PDF
Mg54 imagine+ events
PDF
Ray white know how to consistently outperform in the uae property market
PDF
In network aggregation techniques for wireless sensor networks - a survey
PDF
Food Med Final Handbook ES
PPTX
Formasti
PPT
FERNANDO MENDES NOLASCO
PDF
Results 2010
PDF
Comunicado de Prensa Sumavisos Financiamiento
PDF
Anders samenwerken
PDF
14 razones para_innovar
PPTX
Sitepal cultura de ka info
PPTX
Cuidadano
PDF
Holly Rodrigue Design Samples
DOC
Find hot news in insecticides china news 1401
PDF
Mactac Soignies - Solutions adhésives médicales
PPTX
Regelmæssige franske verber
PPTX
ESCUELA DE COMERCIO Y ADMINISTRACION.FACULTAD DE FILOSOFIA.PAULINA CHACHA.EMP...
8 steps to broadcast digital signage using NoviSign
March2004-CPerlRun
Mg54 imagine+ events
Ray white know how to consistently outperform in the uae property market
In network aggregation techniques for wireless sensor networks - a survey
Food Med Final Handbook ES
Formasti
FERNANDO MENDES NOLASCO
Results 2010
Comunicado de Prensa Sumavisos Financiamiento
Anders samenwerken
14 razones para_innovar
Sitepal cultura de ka info
Cuidadano
Holly Rodrigue Design Samples
Find hot news in insecticides china news 1401
Mactac Soignies - Solutions adhésives médicales
Regelmæssige franske verber
ESCUELA DE COMERCIO Y ADMINISTRACION.FACULTAD DE FILOSOFIA.PAULINA CHACHA.EMP...
Ad

Similar to Chapter 5 (master page) (6)

PPTX
Master page in Asp.net
PPTX
masterpages 1.pptx
PPT
Master pages
PPTX
Master Pages for All Ages - George Solomon, Vibe Commerce
PPTX
ASP.NET Lecture 3
PPT
ASP.NET 06 - Customizing Your Sites Appearance
Master page in Asp.net
masterpages 1.pptx
Master pages
Master Pages for All Ages - George Solomon, Vibe Commerce
ASP.NET Lecture 3
ASP.NET 06 - Customizing Your Sites Appearance
Ad

More from let's go to study (20)

PPTX
Rs instructor ppt_chapter11_final
PDF
Before beginning
PDF
Chapter 8 (security)
PDF
Chapter 7 (ado.net)
PDF
Chapter 6 (data binding)
PDF
Chapter 4 (navigater)
PDF
Chapter 3 (validation control)
PDF
Chapter 2 (web servercontrol)
PDF
Chapter 1 (asp.net over view)
PDF
Before beginning
PPT
PPT
PPT
PPT
PPTX
database design process
PPTX
009 sql server management studio
PPTX
007 sql server-installation
PPT
Chapter 2-html-tage
PDF
Chapter 0 before you start
Rs instructor ppt_chapter11_final
Before beginning
Chapter 8 (security)
Chapter 7 (ado.net)
Chapter 6 (data binding)
Chapter 4 (navigater)
Chapter 3 (validation control)
Chapter 2 (web servercontrol)
Chapter 1 (asp.net over view)
Before beginning
database design process
009 sql server management studio
007 sql server-installation
Chapter 2-html-tage
Chapter 0 before you start

Recently uploaded (20)

PPTX
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
PDF
FORM 1 BIOLOGY MIND MAPS and their schemes
PDF
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
PPTX
Unit 4 Computer Architecture Multicore Processor.pptx
PDF
Complications of Minimal Access-Surgery.pdf
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Uderstanding digital marketing and marketing stratergie for engaging the digi...
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
HVAC Specification 2024 according to central public works department
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
PDF
International_Financial_Reporting_Standa.pdf
PDF
Hazard Identification & Risk Assessment .pdf
PDF
advance database management system book.pdf
PPTX
Introduction to pro and eukaryotes and differences.pptx
PPTX
B.Sc. DS Unit 2 Software Engineering.pptx
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
PDF
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)
ELIAS-SEZIURE AND EPilepsy semmioan session.pptx
FORM 1 BIOLOGY MIND MAPS and their schemes
CISA (Certified Information Systems Auditor) Domain-Wise Summary.pdf
Unit 4 Computer Architecture Multicore Processor.pptx
Complications of Minimal Access-Surgery.pdf
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Uderstanding digital marketing and marketing stratergie for engaging the digi...
Weekly quiz Compilation Jan -July 25.pdf
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
HVAC Specification 2024 according to central public works department
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 2).pdf
International_Financial_Reporting_Standa.pdf
Hazard Identification & Risk Assessment .pdf
advance database management system book.pdf
Introduction to pro and eukaryotes and differences.pptx
B.Sc. DS Unit 2 Software Engineering.pptx
Chinmaya Tiranga quiz Grand Finale.pdf
1.3 FINAL REVISED K-10 PE and Health CG 2023 Grades 4-10 (1).pdf
BP 704 T. NOVEL DRUG DELIVERY SYSTEMS (UNIT 1)

Chapter 5 (master page)

  • 1. Chapter 5 ហោ សូ ហនឿនASP.NET (Master Page) 1
  • 2. Introduction ហោ សូ ហនឿនASP.NET (Master Page)2  Master pages are an easy way to provide a template that can be used by any number of ASP.NET pages in your application.  In working with master pages, you create a master file that is the template referenced by a subpage or content page.  Master pages use a .master file extension, whereas content pages use the .aspx file extension you’re used to; but content pages are declared as such within the file’s Page directive.  You can place anything you want to be included as part of the template in the .master file.  This can include the header, navigation, and footer sections used across the Web Application.  The content page then contains all the page content except for the master page’s elements. At runtime, the ASP.NET engine combines these elements into a single page for the end user.
  • 3. Consideration for a Master Page ហោ សូ ហនឿនASP.NET (Master Page)3  The website’s name on the top of the page  A navigation breadcrumb at the top of the page  A navigation TreeView on the left of the page, showing the site’s structure  A copyright statement and a series of links
  • 4. Creating a New Master Page ហោ សូ ហនឿនASP.NET (Master Page)4
  • 5. Adding “contentPlaceHolder” a Master Page ហោ សូ ហនឿនASP.NET (Master Page)5
  • 6. Attaching a Master Page to a Web Page ហោ សូ ហនឿនASP.NET (Master Page)6  Create a master page that specifies the common, site wide user interface elements and the regions that are customizable on a page-by-page basis.  Create the site’s ASP.NET pages, with the pages configured to use the master page created in step 1.
  • 7. Coding a Content Page ហោ សូ ហនឿនASP.NET (Master Page)7
  • 8. Master Page ហោ សូ ហនឿនASP.NET (Master Page)8
  • 9. សំនួរ រំលឹក និងស្រាវជ្រាវ ហោ សូ ហនឿនASP.NET (Master Page)9 1. ត ើ Master Page មានជ្ររតោជន៏អ្វីដល់ការរតងកើ Website? 2. ត ើ ContentPlaceHolder ាអ្វី? 3. ត ើព ៌មានអ្វីខ្លះគួរជ្រ ូវបានដាក់តលើ Master Page? 4. ត ើ thems ាអ្វី? 5. ត ើ Skins ាអ្វី? 6. ត ើតគរតងកើ Nested Master Page ដូចតតេច?