CS 415 N-Tier Application Development By Umair Ashraf June 28,2013 National University of Computer and Emerging Sciences Lecture # 5 Microsoft MVC3 Architecture.

Slides:



Advertisements
Similar presentations
Apache Struts Technology
Advertisements

INTRODUCTION TO ASP.NET MVC AND EXAMPLE WALKTHROUGH RAJAT ARYA EFECS - OIM DAWG – 4/21/2009 ASP.NET MVC.
Introduction to MVC Adding a View Page NTPCUG Tom Perkins, Ph.D.
{ Model View Controller ASP.NET By Scott Crooks & Maggie Wettergreen.
Fabian Vilers Hands on ASP.NET MVC.
CS 415 N-Tier Application Development By Umair Ashraf July 2nd,2013 National University of Computer and Emerging Sciences Lecture # 7 N-Tier Architecture.
Getting Started with Microsoft Visual Studio,.NET and C# Jim Warren, COMPSCI 280 S Enterprise Software Development.
The Jukebox Orian Paz & Yair Cleper Instructor: Viktor Kulikov Semester: Spring 2009 Final Presentation.
Session-01. Layers Struts 2 Framework The struts 2 framework is used to develop MVC-based web application. Struts 1.0 was released in June The.
What’s new in ASP.NET MVC 3 Building a NerdDinner/AppStore Application.
UNIT-V The MVC architecture and Struts Framework.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
Ori Calvo, 2010 “If people want to have maximum reach across *all* devices then HTML will provide the broadest reach” Scott Guthrie,
Tutorial: Introduction to ASP.NET Internet Technologies and Web Application 4 th February 2010.
CIS 375—Web App Dev II ASP.NET 2 Introducing Web Forms.
Database-Driven Web Sites, Second Edition1 Chapter 8 Processing ASP.NET Web Forms and Working With Server Controls.
Chapter 1: Introduction to Web
Meir Botner David Ben-David. Project Goal Build a messenger that allows a customer to communicate with a service provider for a fee.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Dynamic Action with Macromedia Dreamweaver MX Barry Sosinsky Valda Hilley.
ASP.NET and Model View Control Jesper Tørresø ITNET2 F08.
Web application project Advertising board web site Created by : Alon Nagar Supervisor:Victor Kulikov.
Building Web Sites with ASP.NET MVC Framework Noam King CTO Sela College
ASP.NET Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital.
Lecture 19 Web Application Frameworks Boriana Koleva Room: C54
Getting Started with Microsoft Visual Studio,.NET and C# Jim Warren, COMPSCI 280 S Enterprise Software Development.
Introduction to ASP.NET MVC Information for this presentation was taken from Pluralsight Building Applications with ASP.NET MVC 4.
Universiti Utara Malaysia Chapter 3 Introduction to ASP.NET 3.5.
Kingdom of Saudi Arabia Ministry of Higher Education Al-Imam Muhammad Ibn Saud Islamic University College of Computer and Information Sciences Chapter.
Jean-Claude Trachsel Senior Consultant Trivadis AG Building a Website with ASP.NET MVC.
Jonathan Canfield Mavin Lisa Giss Professor Kenytt D. Avery
Introduction to MVC Controllers NTPCUG Tom Perkins, Ph.D.
Getting Started with ASP.NET MVC BRIJ BHUSHAN MISHRA.
Model View Controller MVC Web Software Architecture.
Internet & World Wide Web How to Program, 5/e © by Pearson Education, Inc. All Rights Reserved.
Getting started with ASP.NET MVC Dhananjay
CS562 Advanced Java and Internet Application Introduction to the Computer Warehouse Web Application. Java Server Pages (JSP) Technology. By Team Alpha.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
CS 415 N-Tier Application Development By Umair Ashraf June 25,2013 National University of Computer and Emerging Sciences Lecture # 4 Web Presentation Patterns.
Preface IIntroduction Objectives I-2 Course Overview I-3 1Oracle Application Development Framework Objectives 1-2 J2EE Platform 1-3 Benefits of the J2EE.
Introduction  “M” “V” “C” stands for “MODEL” “VIEW” “CONTROLLER”. ASP.NET MVC is an architecture to develop ASP.NET web applications in a different manner.
Virtual techdays INDIA │ 9 th – 11 th January 2011 ASP.Net MVC Sundararajan S │ Associate Tech Architect, Aditi Technologies.
ASP.NET MVC An Introduction. What is MVC The Model-View-Controller (MVC) is an architectural pattern separates an application into three main components:
Text INTRODUCTION TO ASP.NET. InterComm Campaign Guidelines CONFIDENTIAL Simply Server side language Simplified page development model Modular, well-factored,
05 | Integrating JavaScript and MVC 4 Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek.
Virtual techdays INDIA │ 9-11 February 2011 SESSION TITLE Kamala Rajan S │ Technical Manager, Marlabs.
Apache Struts Technology A MVC Framework for Java Web Applications.
BIT 286: Web Applications ASP.Net MVC. Objectives Applied MVC overview Controllers Intro to Routing Views ‘Convention over configuration’ Layout files.
INTRODUCTION TO MVC BY SUHA MNEIMNEH. WHAT’S THE AGENDA What is MVC? MVC components MVC vs web forms vs ASP.NET vocabulary When to create MVC application.
Presented by Alexey Vedishchev Developing Web-applications with Grails framework American University of Nigeria, 2016 Intro To MVC Architecture.
© Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
1 Using MVC 6. MVC vs. ASP Web Forms Both run under ASP.NET Can coexist In Web Forms, browser requests page. xxx.aspx and xxx.aspx.cs on the server Page.
Jim Fawcett CSE686 – Internet Programming Spring 2014
ASP.NET Essentials SoftUni Team ASP.NET MVC Introduction
Introduction to MVC SoftUni Team Introduction to MVC
Introduction to .NET Florin Olariu
An introduction to ASP.Net with MVC Nischal S
Jim Fawcett CSE686 – Internet Programming Spring 2012
Social Media And Global Computing Introduction to The MVC Pattern
Department of Computer Science
MVC Architecture, Symfony Framework for PHP Web Apps
ASP.NET MVC Introduction
C#: ASP.NET MVC Overview
Fast App Creation with APEX Blueprints
Haritha Dasari Josue Balandrano Coronel -
© 2016, Mike Murach & Associates, Inc.
Social Media And Global Computing Managing MVC with Custom Models
ASP.NET MVC Web Development
ASP.NET Imran Rashid CTO at ManiWeber Technologies.
ASP.NET MVC Imran Rashid CTO at ManiWeber Technologies.
Introduction to ASP.NET MVC
Presentation transcript:

CS 415 N-Tier Application Development By Umair Ashraf June 28,2013 National University of Computer and Emerging Sciences Lecture # 5 Microsoft MVC3 Architecture for ASP.NET

Agenda/Contents for Today’s Lecture  Design Patterns Review  Class Activity  Introduction to Microsoft MVC framework  History  Advantages  Practical Demonstration  Quiz Announcement

Introduction to MVC framework ASP.NET MVC is a framework for building web applications that applies the general Model View Controller pattern to the ASP.NET framework.

Components of ASP.NET MVC  Models These are the classes that represent the domain you are interested in. With ASP.NET MVC, this is most likely a Data Access Layer of some kind using a tool like Entity Framework or NHibernate combined with custom code containing domain-specific logic  View This is a template to dynamically generate HTML  Controller This is a special class that manages the relationship between the View and Model.

History  ASP.NET MVC1 Feb 2007 by Scott Guthrie Presented in a conference on the East Coast of the United States.  ASP.NET MVC2 March 2010 More Features like UIHelpers, Attribute validations etc  ASP.NET MVC3 January 2011 New Razor View Engine,Rich Javascript support etc.  ASP.NET MVC4 October 2012  Mobile development support, enhancements etc

Creating an ASP.NET MVC 3 Application

The New ASP.NET MVC 3 Dialog

MVC APPLICATION STRUCTURE

Controllers  Controllers within the MVC pattern are responsible for responding to user input, often making changes to the model in response to user input. In this way, controllers in the MVC pattern are concerned with the flow of the application, working with data coming in, and providing data going out to the relevant view.

A Simple Example: The Home Controller 

Home Controller Class using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.Mvc; namespace MvcMusicStore.Controllers { Public class HomeController : Controller { public ActionResult Index() { ViewBag.Message = “I like cake!”; return View(); } public ActionResult About() { return View(); }

Creating the New Controller

Action Methods  public class StoreController : Controller  {  //  // GET: /Store/  public string Index()  {  return “Hello from Store.Index()”;  }  //  // GET: /Store/Browse  public string Browse()  {  return “Hello from Store.Browse()”;  }  //  // GET: /Store/Details  public string Details()  {  return “Hello from Store.Details()”;  }

Parameters in Controller Actions  //  // GET: /Store/Browse?genre=?Disco  public string Browse(string genre)  {  string message =  HttpUtility.HtmlEncode(“Store.Browse, Genre = “ + genre);  return message;  }

Parameters in Controller Actions

Razor View Engine  Razor is the first major update to rendering HTML since ASP.NET 1.0 shipped almost a decade ago. The default view engine used in MVC 1 and 2 was commonly called the Web Forms View Engine, because it uses the same ASPX/ASCX/MASTER files and syntax used in Web Forms

What is Razor?  Razor is the response to one of the most requested suggestions received by the ASP.NET MVC feature team — to provide a clean, lightweight simple view engine that didn’t contain the “syntactic cruft” contained in the existing Web Forms View Engine.  Many developers felt that all that syntactic noise required to write a view created friction when trying to read that view.

View Example  Layout = null;  }   Sample View    This is a sample view. It’s not much to look at,  but it gets the job done. 

ASP.NET MVC life cycle

Announcements Quiz 1 (Design Patterns) Tomorrow Saturday 29 th July 2013 in class Assignment 1 Due Saturday 29 th July 2013 in class

Reference Material Text Book :Professional ASP.NET MVC3 By WROX (EBook uploaded on website ) Other References :