Layout and Partial Views

Slides:



Advertisements
Similar presentations
Apache Tiles.
Advertisements

WEB DESIGN TABLES, PAGE LAYOUT AND FORMS. Page Layout Page Layout is an important part of web design Why do you think your page layout is important?
CHAPTER 3 MORE ON FORM HANDLING INCLUDING MULTIPLE FILES WRITING FUNCTIONS.
Introduction to MVC Adding a View Page NTPCUG Tom Perkins, Ph.D.
Copyright Ó Oracle Corporation, All rights reserved Sharing Objects and Code.
Caching MacDonald Ch. 26 MIS 424 MIS 424 Professor Sandvig Professor Sandvig.
 CSS ids  Pages  Sites  HTML: class=“name”  Names may define format OR content › Either works  CAN apply multiple classes to the same tag  Multiple.
User Controls MacDonald pp MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
Stored Procedures & User Defined Functions MacDonald Ch. 23 MIS 424 MIS 424 Professor Sandvig Professor Sandvig.
Art 128 Interface Programming 1 In-class Presentation Week 11B.
© SAP AG Navigation Abstract This material explains how to navigate in SAP systems. It is aimed at students at universities, universities of applied sciences.
Using Tabs. Tabs are the most general way to navigate through the zzusis portal applications. This tour gives an overview of how to use tabs.
Best Practices for UI with ASP.NET 2.0 Jeff King Program Manager Web Platform and Tools Microsoft Corporation.
What’s new in ASP.NET MVC 3 Building a NerdDinner/AppStore Application.
23 Copyright © 2004, Oracle. All rights reserved. Sharing Objects and Code.
1 Advanced Frame Options Using NORESIZE  By default, users may resize frames unless you specify the NORESIZE attribute in the tag  Examples:
Creating A Simple Web Page. Step 1- Open Dreamweaver & Create A New Page (File New) and blank.
.NET Validation Controls MacDonald Ch. 8 MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
CPSC 203 Introduction to Computers T59 & T64 By Jie (Jeff) Gao.
Overview of Previous Lesson(s) Over View  ASP.NET Pages  Modular in nature and divided into the core sections  Page directives  Code Section  Page.
Introduction to ASP.NET MVC Information for this presentation was taken from Pluralsight Building Applications with ASP.NET MVC 4.
© 2010 Delmar, Cengage Learning Chapter 8 Collecting Data with Forms.
IT204 - Web Scripting and Authoring I Introduction to Dreamweaver Unit 6.
INTRODUCTION TO HTML5 Semantic Layout in HTML5.  The new semantic layout in HTML5 refers to a new class of elements that is designed to help you understand.
Page Layout & Reusable Content in Word 2010 (Part II)
Cascading Style Sheets Class 2, Lecture 3 Rachel A Ober
Crazy New CSS Tools MIS 424 MIS 424 Professor Sandvig Professor Sandvig.
Web Design Part I. Click Menu Site to create a new site root.
1 © Netskills Quality Internet Training, University of Newcastle Using Style Sheets in Dreamweaver CS © Netskills, Quality Internet Training, University.
Getting started with ASP.NET MVC Dhananjay
Formatting a Written Report Using Microsoft Word 2007 Culminating Project Mathematics of Data Management (Nelson) MDM 4U.
Master Pages MacDonald Ch. 13 MIS 324 MIS 324 Professor Sandvig Professor Sandvig.
CPSC 203 Introduction to Computers T43, T46 & T68 By Jie (Jeff) Gao.
CPSC 203 Introduction to Computers T97 By Jie (Jeff) Gao.
Adxstudio Portals Training
CPSC 203 Introduction to Computers Lab 66 By Jie Gao.
CPSC 203 Introduction to Computers T59 & T64 By Jie (Jeff) Gao.
CPSC 203 Introduction to Computers Lab 21 By Jie Gao.
Adding Reports to a Database. Why do we use Reports? Reports are well-designed printed pages that offer several advantages: Reports are well-designed.
Module-Centric Course Design Using Canvas Presented by Yun Moh
BIT 286: Web Applications ASP.Net MVC. Objectives Applied MVC overview Controllers Intro to Routing Views ‘Convention over configuration’ Layout files.
16 Copyright © 2004, Oracle. All rights reserved. Building ADF UIX View Components.
Introduction to MVC Slavomír Moroz. Revision from Previous Lesson o ASP.NET WebForms applications Abstract away HTTP (similar to desktop app development)
MIS Professor Sandvig MIS 324 Professor Sandvig
C# Object Oriented Programming Concepts
Front End Development workshop
MIS Professor Sandvig MIS 324 Professor Sandvig
Scripting the DOM MIS 3502, Fall 2016 Jeremy Shafer Department of MIS
Zend_Layout & Zend_View Enhancements
MVC Partial View.
Exception Handling .NET MVC
Laying out a website using CSS and HTML
C# Object Oriented Programming Concepts
MIS Professor Sandvig MIS 324 Professor Sandvig
MIS Professor Sandvig MIS 424 Professor Sandvig
Implementing Tables to Hold Data in HTML
05 | Customizing Views Jon Galloway | Development Platform Evangelist
From and Report.
Layout and Partial Views
Page Layout & Reusable Content in Word 2010 (Part II)
How to organize and document your classes
Chapter 4 Planning Site Navigation
Title layout Subtitle.
Title Layout Subtitle.
Page Layout & Reusable Content in Word 2010 (Part II)
MIS Professor Sandvig MIS 424 Professor Sandvig
.NET Validation Controls
Who is Using your webSite?
MIS Professor Sandvig MIS 324 Professor Sandvig
Monday, Sept. 24 Today we are going to update the html code to html5. It has some new features that we have not covered yet.
Presentation transcript:

Layout and Partial Views MIS 324 -- Professor Sandvig 11/15/2018 Layout and Partial Views MIS 324 Professor Sandvig

Overview Layout View Partial Views Define page layout once Inject dynamic content Partial Views Define “part of page” Use on multiple pages

MIS 324 -- Professor Sandvig 11/15/2018 Goal Reusable UI code Classes Code Reusability Modularity Interface Layout & Partial Views

Layout View Source: tutorialsTeacher.com

Layout View Layout view contains shared UI Current view injected: @RenderBody() Been using Layout View Views folder _ViewStart.cshtml

Layout View Three ways to specify which layout to use Layout Razor tag in each page In ActionMethod _ViewStart.cshtml

Layout View Action Method public ActionResult Index() { return View("Index", "_myLayoutPage"); }

Layout View _ViewStart.cshtml in View folder

Partial Views Reusable UI code Create like any other view Headers, footer, navigation, etc. Create like any other view Check Partial View Adds: Layout = null; Add to layout @Html.Partial("_header")

Partial Views Can fire action methods for dynamic content @Html.Action("_leftMenu") Example: Layout and Partial Views

MIS 324 -- Professor Sandvig 11/15/2018 Summary Benefits of Layouts & Partial Views Reusable UI code Easy to use