3. Want to learn more about programming or Looking to become a good programmer?
Are you wasting time on searching so many contents online?
Do you want to learn things quickly?
Tired of spending huge amount of money to become a Software professional?
Do an online course
@ baabtra.com
We put industry standards to practice. Our structured, activity based courses are so designed
to make a quick, good software professional out of anybody who holds a passion for coding.
4. MASTER PAGE
Master pages allow you to create a consistent look and behavior for all the pages
in our web application.
A master page provides a template for other pages, with shared layout and
functionality. The master page defines placeholders for the content, which can
be overridden by content pages. The output result is a combination of the
master page and the content page.
When users request the content page, ASP.NET merges the pages to produce
output that combines the layout of the master page with the content of the
content page.
<asp:ContentPlaceHolder id=“mymaster" runat="server">
</asp:ContentPlaceHolder> is the region in the master page that is used to plug
in the content page
We can make layout changes of the site in the master page instead of making
change in all pages.
We canot change common layout of webpage from content page. Can only change
the specific content of that page
6. How Create in ASP.net
Create a website in ASP.net
Right click on the website name in solutionExplorer
Go to "Add New Item".
Select the MasterPage.
We have to Design the common layout only out side of the
ContentPlaceHolder
ContentPlaceHolder is the ragion in the master page that is
used to plug in the content page
7.
8. Add The Content page
Right click on the master pagename in solutionExplorer
Select Add Content Page
We have to design the Content page Only in the Content place holder otherwise it
will create Error
We don’t have html head and body contents in content page that already present
in master page
MasterPageFile atribute in the content page define the name of the master page
ContentPlaceHolder ID atribute contain the name that same as the name in the
master page
All the content define in the contentplaceholder of content page that will be
present in the content place holder of master page
If we have to add a master page to a webpage that actually not a content page of
the master page we just add the MasterPageFile atribute and ContentPlaceHolder
control to the web page
10. Follow us @ twitter.com/baabtra
Like us @ facebook.com/baabtra
Subscribe to us @ youtube.com/baabtra
Become a follower @ slideshare.net/BaabtraMentoringPartner
Connect to us @ in.linkedin.com/in/baabtra
Give a feedback @ massbaab.com/baabtra
Thanks in advance
www.baabtra.com | www.massbaab.com |www.baabte.com
11. Emarald Mall (Big Bazar Building)
Mavoor Road, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
NC Complex, Near Bus Stand
Mukkam, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
Cafit Square,
Hilite Business Park,
Near Pantheerankavu,
Kozhikode
Start up Village
Eranakulam,
Kerala, India.
Email: info@baabtra.com
Contact Us