Chapter6 Styles Master Pages and Navigations
Chapter6 Styles Master Pages and Navigations
I
(ASP.NET)
CHAPTER6. Styles, Master Pages and Site
Navigation
Master page
Site Navigation
INTRODUCING STYLES
Styles are part of the Cascading Style
Sheet (CSS) standard. With styles, you
can define a set of formatting options once
and reuse it to format different elements
on multiple pages, for example, styles that
change the font of all the text in your
website without requiring you to modify
any of the web page code.
Styles allow you to add borders, set font
Content Page
CONTENTPLACEHOLDER
ContentPlaceHolder is a placeholder that can be filled
with content relevant to the needs of each web for m
that uses the master page
Itappears on the page as a faintly outlined box. If
you click inside it or hover over it, the name of
ContentPlaceHolder appears in a tooltip.
Masters define common content and placeholders
(<asp:ContentPlaceHolder>)
CONTENTPLACEHOLDER
</asp:Content>
</asp:Content>
CREATE A NEW MASTER PAGE
WEBSITE > ADD NEW ITEM > MASTER PAGE
ADDING CONTENT PAGE
Resulting Page
<asp :Content
runat =server
ContentName =”Main” >
<asp :ContentPlaceHolder
runat =server
ContentName =”Main” /> </asp :Content >
<asp :Content