SlideShare a Scribd company logo
Thanks,
                  Harshida Parmar
http://www.nichetechinstitute.com/
•        In this presentation we are going to learn about master
         page. But why? So let us understand why master page
         is needed. It’s a total new concept in ASP.NET.
         Suppose we are going to create an application with
         some design and navigation.

•        So we may have multiple pages with same design. In
         such a case we have to copy the same design in all the
         pages, which will waste our time and also increases
         the length and load of the page.



Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
In addition, if we change something in this design
         like navigation URL or code then we have to make
         change in all the other pages. So to remove this
         limitation we uses Master page. Let us take a look at
         figure in next slides.

          Here in the next slide figure the rounded figure
         always same in all the pages. So it is batter to use it
         one area that will have all the same design and we just
         have to call that area in our page. This concept is
         known as master page.


Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
•        It is very easy and simple to create master page in
         ASP.NET 3.5. We just have to make design and put it
         in the master page. Let us follow the steps and create
         maser page. We are going to make design as below:




Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
•        In this application some portion is always same that
         is header links like homepage, about us, etc. Then the
         left side image will be same and footer will also be
         same. So whenever we are going to create new page
         then we have to make the same design for all pages.
         So it is batter to use master page. So let us implement
         master page in it.

•        Whenever we create the application by default one
         page will be added. So now we will add new master
         page…


Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
•        Create .net application…

•        Then after right click on solutions explorer

•        Create new item

•        Select master page from Create new Item Window

•        Check out next slide




Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
•




Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
•        Master page has one area which is known as
         CONTENT PLACE HOLDER. Master page
         contains one content place holder by default as
         displayed below:




Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
•        The main purpose of content place holder is to create
         area which is changing in all the onther page. So in
         master page will make content place holder which
         will be different in other pages.

•        But is it not necessary that we have only one area. If
         we take a look at image2 website demo then it has
         three areas which will be same in all the page. It
         means that we have one content place holder.

•        You can check out the ContentPlaceHolder from toolbar


Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
•        Take a look at following image:




Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
•




Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
•        You can see in previous slide we have one master page in
         that we have set our design …

•        Now what we want is… this design should be exist in all
         the pages… in our website

•        So for that you have create one new page

•        So create new web form (.aspx) page check out the next
         slide you will get all idea…




Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
•




Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
•        Now you have check the checkbox which contain the text
         “SELECT MASTER PAGE”

•        When check it one window will pop up…




Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
•        This window show that please your master page…

•        Means which master page design you are interested to
         apply in .aspx page

•        When you select your master for your .aspx page then one
         window will shown to you

         Check out the next slide… you will get proper idea…




Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
•




Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
•        So now you can see that when we create the .aspx
         automatically master page design will support…

•         So now we will add our changing code to new page’s
         content place holder.

•        Now we are working in .aspx page…




Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
•




Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
And finally it will give following out put. So now if we
         add number of pages to the application then also the
         design will not take as much time and lots of code. In
         more if we change any design the also it will be
         changed in all other pages automatically.




Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)

More Related Content

PPTX
Cover letter
PDF
NOME web-mobile design
KEY
HomeQuest Custom Wordpress Websites
PPT
How much does a website cost
PPT
Fundamentals of-copywriting
PPT
Gniyes inc. Website Portfolio
PDF
How to Build a Website - Wordpress Basics
DOCX
Web designer
Cover letter
NOME web-mobile design
HomeQuest Custom Wordpress Websites
How much does a website cost
Fundamentals of-copywriting
Gniyes inc. Website Portfolio
How to Build a Website - Wordpress Basics
Web designer

What's hot (20)

PDF
Website design by using CMS _M.Mujeeb Riaz
PDF
How Much Does a Custom WordPress Theme Cost?
PPTX
My portfolio website
PDF
SEO Search Engine optimization M.Mujeeb Riaz
PPT
Web developer & website create on wordpress
PPT
5 web design companies inspiring to rethink about visual identity
PPTX
What is Sitemap and How to create sitemap
PDF
Lose Your Head! Re-imagining WordPress's Role in Content Presentation
PDF
Heroku - Forget Servers!!
PPTX
Configuring WordPress - Dan Maby
PPTX
GoDaddy WSB Post-transfer experience
PDF
Business writing
PPTX
Illuminz
PDF
Seo and the Inner Workings of Google Autocomplete
PPSX
Astro Arts
PPTX
Wordpress for beginners
PDF
Agility in Web Design & Development
PDF
Website Solutions
PPTX
Skills development contents page
PPTX
Complete Web and Social Media Marketing Solution.
Website design by using CMS _M.Mujeeb Riaz
How Much Does a Custom WordPress Theme Cost?
My portfolio website
SEO Search Engine optimization M.Mujeeb Riaz
Web developer & website create on wordpress
5 web design companies inspiring to rethink about visual identity
What is Sitemap and How to create sitemap
Lose Your Head! Re-imagining WordPress's Role in Content Presentation
Heroku - Forget Servers!!
Configuring WordPress - Dan Maby
GoDaddy WSB Post-transfer experience
Business writing
Illuminz
Seo and the Inner Workings of Google Autocomplete
Astro Arts
Wordpress for beginners
Agility in Web Design & Development
Website Solutions
Skills development contents page
Complete Web and Social Media Marketing Solution.
Ad

Viewers also liked (15)

PDF
E tutorial - tax payer registration and login
PPTX
υβρις
PPTX
第2章練習問題
PPTX
04 difficulty of forgiveness
PPT
Rubber fitness flooring 10 5-13 mmwa
PPTX
01 2coroverview
PPT
PROGRAM UMROH 2014
PDF
"Thu Vien Sach Co Khi" –Co so ly thuyet ve khi nen
PPTX
การเข้าและออก ระบบจัดการเว็บไซต์
PDF
Walfer hommes
PPTX
En rörig tillvaro som berör. Elin Lucassi, KB
PPTX
God way is perfect
PPTX
Social selling 5 steps to your goal
PDF
9 советов по укреплению иммунитета перед наступлением холодов
PDF
Slidesharecayto20131007
E tutorial - tax payer registration and login
υβρις
第2章練習問題
04 difficulty of forgiveness
Rubber fitness flooring 10 5-13 mmwa
01 2coroverview
PROGRAM UMROH 2014
"Thu Vien Sach Co Khi" –Co so ly thuyet ve khi nen
การเข้าและออก ระบบจัดการเว็บไซต์
Walfer hommes
En rörig tillvaro som berör. Elin Lucassi, KB
God way is perfect
Social selling 5 steps to your goal
9 советов по укреплению иммунитета перед наступлением холодов
Slidesharecayto20131007
Ad

Similar to Introduction of Mastert page (20)

PPTX
Master page in Asp.net
PPTX
Master Pages In Asp.net
PDF
Master Pages And Navigation
PPT
Session iv(master pages)
PPTX
masterpages 1.pptx
PPT
Master pages
PPS
04 asp.net session05
DOCX
Master page
PPSX
04 asp.net session05
PPT
Master pages
PPS
04 asp.net session05
PPTX
Master page
PPTX
ASP.NET Lecture 3
PDF
Aspnet master pages_tutorial_10_cs
DOC
.NET 1.1 Base Page Framework Article
PPTX
Popping the Hood: How to Create Custom SharePoint Branding by Randy Drisgill ...
PPTX
Master Pages for All Ages - George Solomon, Vibe Commerce
PPTX
Masterpage in asp.net
PPT
ASP.NET 06 - Customizing Your Sites Appearance
PPS
11 asp.net session16
Master page in Asp.net
Master Pages In Asp.net
Master Pages And Navigation
Session iv(master pages)
masterpages 1.pptx
Master pages
04 asp.net session05
Master page
04 asp.net session05
Master pages
04 asp.net session05
Master page
ASP.NET Lecture 3
Aspnet master pages_tutorial_10_cs
.NET 1.1 Base Page Framework Article
Popping the Hood: How to Create Custom SharePoint Branding by Randy Drisgill ...
Master Pages for All Ages - George Solomon, Vibe Commerce
Masterpage in asp.net
ASP.NET 06 - Customizing Your Sites Appearance
11 asp.net session16

More from NicheTech Com. Solutions Pvt. Ltd. (10)

PPTX
Java Training Ahmedabad , how to Insert Data in Servlet, iOS Classes Ahmedabad
PPTX
Java Training Ahmedabad , Introduction of java web development
PPT
Android Training Ahmedabad , Android Course Ahmedabad, Android architecture
PPTX
Cocoa and MVC in ios, iOS Training Ahmedbad , iOS classes Ahmedabad
PPTX
Objective of c in IOS , iOS Live Project Training Ahmedabad, MCA Live Project...
PPT
Introduction Of Linq , ASP.NET Training Ahmedabad, ASP.NET Course Ahmedabad
PPTX
Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...
PPSX
Introduction of wordpress, Wordpress Training Ahmedabad, Wordpress Class Ahme...
PPSX
Introduction of Oscommerce, PHP Live Project Training Ahmedabad, PHP Course A...
Java Training Ahmedabad , how to Insert Data in Servlet, iOS Classes Ahmedabad
Java Training Ahmedabad , Introduction of java web development
Android Training Ahmedabad , Android Course Ahmedabad, Android architecture
Cocoa and MVC in ios, iOS Training Ahmedbad , iOS classes Ahmedabad
Objective of c in IOS , iOS Live Project Training Ahmedabad, MCA Live Project...
Introduction Of Linq , ASP.NET Training Ahmedabad, ASP.NET Course Ahmedabad
Android Training Ahmedabad , Android Project Training Ahmedabad, Android Live...
Introduction of wordpress, Wordpress Training Ahmedabad, Wordpress Class Ahme...
Introduction of Oscommerce, PHP Live Project Training Ahmedabad, PHP Course A...

Recently uploaded (20)

PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Anesthesia in Laparoscopic Surgery in India
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PDF
Classroom Observation Tools for Teachers
PDF
VCE English Exam - Section C Student Revision Booklet
PPTX
Pharma ospi slides which help in ospi learning
PPTX
Cell Types and Its function , kingdom of life
PPTX
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
PPTX
Lesson notes of climatology university.
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PDF
O7-L3 Supply Chain Operations - ICLT Program
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
Pre independence Education in Inndia.pdf
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Final Presentation General Medicine 03-08-2024.pptx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Anesthesia in Laparoscopic Surgery in India
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
Module 4: Burden of Disease Tutorial Slides S2 2025
Classroom Observation Tools for Teachers
VCE English Exam - Section C Student Revision Booklet
Pharma ospi slides which help in ospi learning
Cell Types and Its function , kingdom of life
BOWEL ELIMINATION FACTORS AFFECTING AND TYPES
Lesson notes of climatology university.
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
O7-L3 Supply Chain Operations - ICLT Program
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
Pre independence Education in Inndia.pdf
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
GDM (1) (1).pptx small presentation for students
Final Presentation General Medicine 03-08-2024.pptx

Introduction of Mastert page

  • 1. Thanks, Harshida Parmar http://www.nichetechinstitute.com/
  • 2. In this presentation we are going to learn about master page. But why? So let us understand why master page is needed. It’s a total new concept in ASP.NET. Suppose we are going to create an application with some design and navigation. • So we may have multiple pages with same design. In such a case we have to copy the same design in all the pages, which will waste our time and also increases the length and load of the page. Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
  • 3. In addition, if we change something in this design like navigation URL or code then we have to make change in all the other pages. So to remove this limitation we uses Master page. Let us take a look at figure in next slides. Here in the next slide figure the rounded figure always same in all the pages. So it is batter to use it one area that will have all the same design and we just have to call that area in our page. This concept is known as master page. Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
  • 4. Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
  • 5. It is very easy and simple to create master page in ASP.NET 3.5. We just have to make design and put it in the master page. Let us follow the steps and create maser page. We are going to make design as below: Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
  • 6. In this application some portion is always same that is header links like homepage, about us, etc. Then the left side image will be same and footer will also be same. So whenever we are going to create new page then we have to make the same design for all pages. So it is batter to use master page. So let us implement master page in it. • Whenever we create the application by default one page will be added. So now we will add new master page… Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
  • 7. Create .net application… • Then after right click on solutions explorer • Create new item • Select master page from Create new Item Window • Check out next slide Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
  • 8. • Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
  • 9. Master page has one area which is known as CONTENT PLACE HOLDER. Master page contains one content place holder by default as displayed below: Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
  • 10. The main purpose of content place holder is to create area which is changing in all the onther page. So in master page will make content place holder which will be different in other pages. • But is it not necessary that we have only one area. If we take a look at image2 website demo then it has three areas which will be same in all the page. It means that we have one content place holder. • You can check out the ContentPlaceHolder from toolbar Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
  • 11. Take a look at following image: Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
  • 12. • Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
  • 13. You can see in previous slide we have one master page in that we have set our design … • Now what we want is… this design should be exist in all the pages… in our website • So for that you have create one new page • So create new web form (.aspx) page check out the next slide you will get all idea… Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
  • 14. • Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
  • 15. Now you have check the checkbox which contain the text “SELECT MASTER PAGE” • When check it one window will pop up… Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
  • 16. This window show that please your master page… • Means which master page design you are interested to apply in .aspx page • When you select your master for your .aspx page then one window will shown to you Check out the next slide… you will get proper idea… Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
  • 17. • Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
  • 18. So now you can see that when we create the .aspx automatically master page design will support… • So now we will add our changing code to new page’s content place holder. • Now we are working in .aspx page… Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
  • 19. • Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
  • 20. And finally it will give following out put. So now if we add number of pages to the application then also the design will not take as much time and lots of code. In more if we change any design the also it will be changed in all other pages automatically. Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)
  • 21. Prepared By, Harshida Parmar, NicheTech Com.Sol.Pvt.Ltd (http://www.nichetechinstitute.com/)