CSCI 6962: Server-side Design and Programming Master Pages.

Slides:



Advertisements
Similar presentations
HTML Basics Customizing your site using the basics of HTML.
Advertisements

Internet Services and Web Authoring (CSET 226) Lecture # 5 HyperText Markup Language (HTML) 1.
CSS. CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem External Style.
Tutorial 6 Creating a Web Form
INTRODUCTORY Tutorial 7 Creating Liquid Layouts. XP Objectives Discern the differences among various types of layouts Create a liquid layout Create a.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML
Understand Web Page Development Software Development Fundamentals LESSON 4.1.
Asp.NET Page Composition. Slide 2 Lecture Overview Work with master pages and content pages.
Web Development in Microsoft Visual Studio Slide 2 Lecture Overview Introduce Visual Studio 2013 Create a first ASP.NET application.
Chapter 7 Using Advanced Cascading Style Sheets HTML5 & CSS 7 th Edition.
4.01 Cascading Style Sheets
CSS (Cascading Style Sheets): How the web is styled Create Rules that specify how the content of an HTML Element should appear. CSS controls how your web.
Understanding HTML Style Sheets. What is a style?  A style is a rule that defines the appearance and position of text and graphics. It may define the.
Basics of HTML.
® IBM Software Group © 2006 IBM Corporation Creating JSF/EGL Template Pages This section describes how to create.JTPL (Java Template Pages) using the Page.
© 2011 Delmar, Cengage Learning Chapter 2 Developing a Web Page.
CSS Style Rules Guang Tong, Zhan L;lo’p[ Css Style Rule Guang Tong Zhan Three ways to insert CSS 1 External style sheet 2 Internal style sheet 3 Inline.
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)
Chapter 5 Java Script And Forms JavaScript, Third Edition.
Making an HTML Document Notepad Group Bo Kim Dan Carter Han Chong Justin Weaver Kris Lamont.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Chapter 2 Developing a Web Page. A web page is composed of two distinct sections: –The head content –The body Creating Head Content and Setting Page Properties.
HTML and Style. Session overview Leveling-off on the basic concepts of HTML and Styles Discuss Web authoring options.
Intro to Dreamweaver Web Design Section 7-1 Part or all of this lesson was adapted from the University of Washington’s “Web Design & Development I” Course.
Website Development with Dreamweaver
Title, meta, link, script.  The title looks like:  The tag defines the title of the document in the browser toolbar.  It also: ◦ Provides a title for.
Section 17.1 Add an audio file using HTML Create a form using HTML Add text boxes using HTML Add radio buttons and check boxes using HTML Add a pull-down.
CSS Basic (cascading style sheets)
CSCI 6962: Server-side Design and Programming Introduction to Active Server Pages.
Microsoft FrontPage 2003 Illustrated Complete Using a Dynamic Web Template.
Cascade Style Sheet Introduction. What is CSS?  CSS stands for Cascading Style Sheets  Styles define how to display HTML elements  Styles were added.
Copyright 2007, Information Builders. Slide 1 Understanding Basic HTML Amanda Regan Technical Director June, 2008.
Joe Hummel, PhD Dept of Mathematics and Computer Science Lake Forest College
CSCI 6962: Server-side Design and Programming Database Manipulation in ASP.
Lotus 认证培训 Notes Domino 6/6.5 Application Development Foundation Skills ( 610 ) Exam Number: 610 Competencies: Please see exam guide. Length:
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.
HTML Forms. Slide 2 Forms (Introduction) The purpose of input forms Organizing forms with a and Using different element types to get user input A brief.
CSE 409 – Advanced Internet Technology Today you will learn  Styles  Themes  Master Pages Themes and Master Pages.
Web Design Part I. Click Menu Site to create a new site root.
LEARN THE QUICK AND EASY WAY! VISUAL QUICKSTART GUIDE HTML and CSS 8th Edition Chapter 8: Working with Style Sheets.
Cascading Style Sheets CSS. Source W3Schools
CSCI 6962: Server-side Design and Programming Facelets and User Interface Design.
Are You Smarter Than a 5 th Grader? 1,000,000 5th Grade HTML 5th Grade Syntax 4th Grade HTML 4th Grade Syntax 3rd Grade HTML 3rd Grade Syntax 2nd Grade.
HTML Basics. HTML Coding HTML Hypertext markup language The code used to create web pages.
Headings are defined with the to tags. defines the largest heading. defines the smallest heading. Note: Browsers automatically add an empty line before.
Creating Web Page Forms COE 201- Computer Proficiency.
Working with DIV Structures, CSS, Webfonts and Templates 9/16/2015Web Development and Interactive Media.
Positioning Objects with CSS and Tables
1111 Master Pages Beginning ASP.NET in C# and VB Chapter 6.
CSS IS A LANGUAGE DESIGNED TO TARGET HTML ELEMENTS AND NODES BY TYPE, CLASS, ID AND VALUE, AND CHANGE THEIR VALUES CSS – change how your HTML looks and.
XP New Perspectives on Macromedia Dreamweaver MX 2004 Tutorial 5 1 Adding Shared Site Elements.
STYLING WITH THEMES Active server pages (ASP.NET) 1 Chapter-5.
Tutorial 6 Creating a Web Form
HTML Tutorial. What is HTML HTML is a markup language for describing web documents (web pages) HTML documents are described by HTML tags Each HTML tag.
HTML5 and CSS3 Illustrated Unit B: Getting Started with HTML.
Tutorial 6 Creating Reusable Assets and Forms. Objectives Session 6.1 – Explore the head content of a page – Add keywords to a page – Add a meta description.
Creating Consistent Looking Websites
4.01 Cascading Style Sheets
Positioning Objects with CSS and Tables
Website Design 3
HTML A brief introduction HTML.
Basic HTML and Embed Codes
Building ASP.NET Applications 2
Web Development Using ASP .NET
Master Pages & Themes.
4.01 Cascading Style Sheets
5.00 Apply procedures to organize content by using Dreamweaver. (22%)
Positioning Objects with CSS and Tables
One Set of Styles Connected to As Many Pages as You Want!!!
How to add a photo gallery in html/css
Presentation transcript:

CSCI 6962: Server-side Design and Programming Master Pages

ASP and CSS Implemented as a theme Create App_Themes directory Create subdirectory with stylesheet name Copy stylesheet into subdirectory Copy other resources (images, etc.) into subdirectory

ASP and CSS Setting style for all pages: Add to web.config Setting style for individual page: Add to <page tag

ASP Master Pages Framework that allows other pages to be displayed inside of them as content Master page Content

Creating Master Pages Option in “New Item” List

Master Page Contents Defines content common to all pages –Logo, navbar, etc. Can include dynamic content –Example: Current date

Placeholder for Contents Must contain a ContentPlaceHolder object –Where content from other pages will be inserted –Two automatically added when Master Page created –Can always add more

Linking Content Pages Can link existing content page to master page using Master Page property of page Check “Select Master Page” when adding new page –Can do later, but must strip out any html, body, form, and div tags

Creating Content Pages New page appears inside master page in editor –Appears at location of ContentPlaceHolder –Master page content cannot be edited

Creating Content Pages Page contents appear inside <asp:Content tag

Creating Content Pages When run in browser, content page rendered inside master page

Multiple Content Areas Can insert multiple ContentPlaceHolder on master page Specify what goes in each area in content page

Nested Master Pages Can nest one master page inside another –Outer = general content to all pages –Inner = specific content to some pages –As with content page, prompted for outer master page

Nested Master Pages In editor, drawn inside outer master page in its ContentPlaceHolder Must have own ContentPlaceHolder to insert content from its client pages

Nested Master Pages Specify inner master page as master page Content rendered inside inner master page Inner master page rendered inside outer master page

Accessing Master Page Controls Client page can manipulate master page elements –More difficult, since not same object Basic steps: –Make master page control public to client page Create public method in code behind to manipulate control –Set VirtualPath directive in client to refer to master page

Accessing Master Page Controls Example: –User enters name in content page –Greeting with name appears in master page