1 Designing & Developing Web- Based Solutions in ASP.NET Week 2 Themes & Master Pages.

Slides:



Advertisements
Similar presentations
Cascading Style Sheets
Advertisements

CHAPTER 7 STYLING CONTENT WITH CASCADING STYLE SHEETS.
MIS 425 Lecture 2 – HTML Navigation, Colors, tables and Styles Instructor: Martin Neuhard
Cascading Style Sheets Understanding styles. The term cascading describe the capability of a local style to override a general style. CSS applies style.
16 HTML Tables and Frames Section 16.1 Create a basic table using HTML Define borders Merge cells Align content in tables Section 16.2 Create a frames-based.
MSc. Publishing on WWW Tables and Style Sheets. Tables Tables are used to: Organize and display tabular data To create a layout for web pages.
Asp.NET Page Composition. Slide 2 Lecture Overview Work with master pages and content pages.
Best Practices for UI with ASP.NET 2.0 Jeff King Program Manager Web Platform and Tools Microsoft Corporation.
1/12. 2/12 Who is this Lawrence guy? Why am I here? Why is effective web design important? :: See whySee why We will discuss: General Suggestions User.
© 2011 Delmar, Cengage Learning Chapter 2 Developing a Web Page.
1 Designing & Developing Web- Based Solutions in ASP.NET Week 3 Website Navigation & Resources.
Creating A Simple Web Page. Step 1- Open Dreamweaver & Create A New Page (File New) and blank.
Cascading Style Sheets Part 1 Library and Information Services, University of St Andrews.
HTML Web Authoring Tonya L. DeZarn Janice Thompson Juana Wallace.
Ch6:creating consistent looking web sites. Master pages Master page defines a combination of fixed content and content place holder to hold the web page(.aspx)
Tutorial 5 Working with Web Tables. XP Objectives Explore the structure of a Web table Create headings and cells in a table Create cells that span multiple.
INTRODUCTION TO HTML5 CSS Styles. Understanding Style Sheets  HTML5 enables you to define many different types of content on a web page, including headings,
Styles with Cascading Style Sheets (CSS) Web Design – Section 4-1 Part or all of this lesson was adapted from the University of Washington’s “Web Design.
CHAPTER 3 Working with Templates and Styles. CHAPTER OBJECTIVES  Create an Expression Web site from a template  Rename a page  Rename a folder  Add.
The Internet and the World Wide Web. The Internet A Network is a collection of computers and devices that are connected together. The Internet is a worldwide.
Programming in HTML.  Programming Language  Used to design/create web pages  Hyper Text Markup Language  Markup Language  Series of Markup tags 
Cascading Style Sheets CSS by Pavlovic Nenad by. 2Cascading Style Sheets Presentation Contents What are CSS? What are CSS? History of CSS History of CSS.
MIS 425 Lecture 3 – HTML 5 and CSS Instructor: Martin Neuhard
Css. Definition Cascading style sheet (CSS) Cascading Style Sheets (CSS) is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Internet Web Publishing III. Intro to Cascading Style Sheets Patricia Roberts.
Cascading Style Sheets Part 1. CSS vs HTML HTML: Originally intended to markup structure of a document (,...,,,,,...) CSS Developing technology, CSS1,
Css. Definition Cascading style sheet (CSS)  It is a simple mechanism for adding style (e.g. fonts, colors, spacing) to Web documents.
Cascading Style Sheets Class 2, Lecture 3 Rachel A Ober
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College
HTML Concepts and Techniques Fifth Edition Chapter 6 Using Frames in a Web Site.
Definition CSS “Short for Cascading Style Sheets, a new feature being added to HTML that gives both Web site developers and users more control over how.
Use CSS to Implement a Reusable Design Selecting a Dreamweaver CSS Starter Layout is the easiest way to create a page with a CSS layout You can access.
Things like Textboxes, Lables, ‘n’at. ASPX page is not HTML Controls are rendered into markup that a browser can understand Some controls are rendered.
CHAPTER 5 Working with Data Tables and Inline Frames.
CSCI 6962: Server-side Design and Programming Master Pages.
CSE 409 – Advanced Internet Technology Today you will learn  Styles  Themes  Master Pages Themes and Master Pages.
DYNAMIC HTML What is Dynamic HTML: HTML code that allow you to change/ specify the style of your web pages. Example: specify style sheet, object model.
CSCI 6962: Server-side Design and Programming Facelets and User Interface Design.
Positioning Objects with CSS and Tables
Cascading Style Sheets (CSS) EXPLORING COMPUTER SCIENCE – LESSON 3-5.
Introduction to Programming the WWW I CMSC Summer 2003 Lecture 6.
1111 Master Pages Beginning ASP.NET in C# and VB Chapter 6.
NASRULLAHIBA.  It is time to take your web designing skills to the next level with Cascading Style Sheets (CSS). They are a way to control the look and.
Web Design Terminology Unit 2 STEM. 1. Accessibility – a web page or site that address the users limitations or disabilities 2. Active server page (ASP)
STYLING WITH THEMES Active server pages (ASP.NET) 1 Chapter-5.
CSS Layout Cascading Style Sheets. Lesson Overview  In this lesson, we’ll cover:  Brief CSS review  Creating sections with the tag  Creating inline.
Chapter 4 Frames and Cascading Style Sheets. Frames Frames divide a browser window into two or more separate pieces or panes, with each pane containing.
Tutorial 5 Working with Web Tables. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Learn and Apply the structure of.
HTML LAYOUTS. CONTENTS Layouts Example Layout Using Element Example Using Table Example Output Summary Exercise.
INTRODUCTION ABOUT DIV Most websites have put their content in multiple columns. Multiple columns are created by using or elements. The div element is.
Making the website. Get your folders sorted first Create a new folder in “N” called “My hockey website” Create folders inside called “Documents”, “images”
Chapter 2 Creating Website with Web Forms. Objectives Understand the different project types and templates when building ASP.NET web sites. The different.
Creating Consistent Looking Websites
Framework Based Internet Applications
Objective % Select and utilize tools to design and develop websites.
4.01 Cascading Style Sheets
Positioning Objects with CSS and Tables
Cascading Style Sheets
>> CSS Rules Selection
CX Introduction to Web Programming
Objective % Select and utilize tools to design and develop websites.
The Web Wizard’s Guide To DHTML and CSS
Building ASP.NET Applications 2
Master Pages & Themes.
MASTER PAGES.
4.01 Cascading Style Sheets
Positioning Objects with CSS and Tables
4.00 Apply procedures to add content by using Dreamweaver. (22%)
Framework Based Internet Applications Styles, Themes, and Master Pages
Presentation transcript:

1 Designing & Developing Web- Based Solutions in ASP.NET Week 2 Themes & Master Pages

Today’s Agenda Homework Review Lecture:  CSS - Themes  Master Pages Lab  Master Page layout  Utilize Themes Designing & Developing Web-Based Solutions in ASP.NET2

Cascading Style Sheets -.CSS Automatic vs. Applied  Auto h2 { font-size: large;} //.css large //.aspx  Applied.heading2 { font-size: small;}// begins with a dot ‘.’ small // HTML File // ASPX File Designing & Developing Web-Based Solutions in ASP.NET3

Using a Style Sheet Use.css in a page  Place before the tag at top of page <link href=“~/styles.css” rel="Stylesheet" type="text/css"/> Designing & Developing Web-Based Solutions in ASP.NET4

Themes – Folders & Contents All themes must live here:  ~\Themes\  … Skins and CSS live in their theme folder  ~\Themes\ \styles.css  ~\Themes\ \Default.skin  ~\Themes\ \Large.skin  ~\Themes\ \Small.skin Designing & Developing Web-Based Solutions in ASP.NET5

Themes - Skins Automatic vs. Applied  Auto //.skin file Applied to all “asp:Label” controls  Applied.skin file .aspx  // skip runat=“server” Designing & Developing Web-Based Solutions in ASP.NET6

Using a Theme.webconfig   In Code Protected void Page_PreInit(…) {Page.Theme = “Theme Name 1”; }.aspx  Designing & Developing Web-Based Solutions in ASP.NET7

Themes vs. CSS = Complement ThemesCSS CompatibilityASP.NET OnlyStandard Effected ElementsControls OnlyHTML only When AppliedAt ServerAt Browser Where ReferencedASPX, IIS, *.webconfigRendered Page OverridingDefault = no override. StyleSheetTheme = css way. Element overrides, can’t change override Designing & Developing Web-Based Solutions in ASP.NET8

Themes – Override Behavior Default (controls can’t override the theme) The.css way (controls override theme) Can use both… Use separate.skin files Disable Theming on a per control basis  // Default=true NOTE: All or nothing here… Designing & Developing Web-Based Solutions in ASP.NET9

Master Pages Purpose:  Uniform Page Layout over entire website Previous Techniques  Pagelets: User controls defining layout Can’t ensure controls placed in same local on every page  HTML Frames: Browser contains multi-pages Pages can’t cross talk easily Designing & Developing Web-Based Solutions in ASP.NET10

Master Page – The File *.master Master Directive (in *.master file) Special contents  “default placeholder text” Designing & Developing Web-Based Solutions in ASP.NET11

Master Page – In a web Page.webconfig  .master”/> Page.master” %> Designing & Developing Web-Based Solutions in ASP.NET12

Master Page – Div vs. Table Table  Tabular Data, not meant for layout  Slow loading & complex nesting (Rat’s Nest)  Quick & simple for simple cases Div  Intended for layout  Faster load & Less nesting required.  Great at dynamically moving around (No Cell merge)  Little more complex for simple case, much easier for complex cases. Designing & Developing Web-Based Solutions in ASP.NET13

Lab Create a new Site Add a Master page  Layout (Table vs. Div)  ContentPlaceHolder  Apply (web.config vs. PAGE) Add Content Page Add Themes (Black & White)  Add Skins (Formal.skin & Playful.skin ?)  Add CSS (move MasterPage layout to CSS) Designing & Developing Web-Based Solutions in ASP.NET14

Homework Readings  Chapter 17 – Website Navigation Video:  Resources Project  Master Page good for multipage sites  At least 1 Theme nice as a.css repository Designing & Developing Web-Based Solutions in ASP.NET15