Getting started with ASP.NET MVC Dhananjay

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.
Web Applications Development Using Coldbox Platform Eddie Johnston.
ASP.NET Web Forms vs. MVC Choosing the right one for web development Harish Ranganathan Senior Evangelist Microsoft Corporation.
Dhananjay Microsoft MVP
Fabian Vilers Hands on ASP.NET MVC.
Languages for Dynamic Web Documents
Building Applications using ASP.NET and C# / Session 1 / 1 of 21 Session 1.
Apache Struts Technology A MVC Framework for Java Web Applications.
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.
How to Write Unit Tests in C#
AMS304: Introduction to the ASP.NET Model View Controller (MVC) Framework Scott Hanselman Eilon Lipton Microsoft Microsoft
Christopher M. Pascucci Basic Structural Concepts of.NET Browser – Server Interaction.
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,
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
CIS 375—Web App Dev II ASP.NET 2 Introducing Web Forms.
Getting Started with the ASP.NET Web API Dhananjay Kumar Infragistics Consultant Microsoft MVP
Lecturer: Prof. Piero Fraternali, Teaching Assistant: Alessandro Bozzon, Advanced Web Technologies: Struts–
Alcatel-Lucent CDC Workshop, Coaching & Knowledge Transfer Architecture.
Building Secure Web Applications With ASP.Net MVC.
JSF Framework Java Server Faces Presented by Songkran Totiya (6/10/2014)
.  A multi layer architecture powered by Spring Framework, ExtJS, Spring Security and Hibernate.  Taken advantage of Spring’s multi layer injection.
Getting Started with ASP.NET MVC BRIJ BHUSHAN MISHRA.
Scripting Languages Client Side and Server Side. Examples of client side/server side Examples of client-side side include: JavaScript Jquery (uses a JavaScript.
© FPT SOFTWARE – TRAINING MATERIAL – Internal use 04e-BM/NS/HDCV/FSOFT v2/3 JSP Application Models.
JavaScript for C# developers Dhananjay Microsoft MVP
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.
Simplifying the Code First Approach in the Entity Framework Dhananjay Kumar Infragistics Consultant Microsoft MVP
How to implement the Repository Pattern in an ASP.NET MVC Application Dhananjay Kumar Developer Evangelist – Infragistics Microsoft MVP
Java Programming: Advanced Topics 1 Building Web Applications Chapter 13.
ASP.NET MVC An Introduction. What is MVC The Model-View-Controller (MVC) is an architectural pattern separates an application into three main components:
Virtual techdays INDIA │ 9-11 February 2011 SESSION TITLE Kamala Rajan S │ Technical Manager, Marlabs.
Personalizing Web Sites Nasrullah. Understanding Profile The ASP.NET application service that enables you to store and retrieve information about users.
03 | Developing MVC 4 Controllers Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek.
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
Apache Struts Technology A MVC Framework for Java Web Applications.
Intro to MVC5 Bryan Soltis Bit-Wizards - Director of Technology & Research.
Modern Development Technologies in SharePoint SHAREPOINT SATURDAY OMAHA APRIL, 2016.
The New Face of ASP.NET ASP.NET MVC, Razor, and jQuery Ido Flatow | Senior Architect | Sela | This session is.
Submitted by: Moran Mishan. Instructed by: Osnat (Ossi) Mokryn, Dr.
Bob German Principal Architect Developing SharePoint Applications with MVC and Entity Framework.
BIT 286: Web Applications ASP.Net MVC. Objectives Applied MVC overview Controllers Intro to Routing Views ‘Convention over configuration’ Layout files.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
//liveVirtualacademy2011/ What’s New for ASP.NET 4.5 and Web Development in Visual Studio 11 Developer Preview Γιώργος Καπνιάς MVP, MCT, MCDP, MCDBA, MCTS,
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.
UNIT TESTING IN ANGULARJS Dhananjay
Angularjs 2.0 : Getting started
Simplifying Objects and Inheritance in JavaScript
Introduction to .NET Florin Olariu
An introduction to ASP.Net with MVC Nischal S
Social Media And Global Computing Introduction to The MVC Pattern
MVC Architecture, Symfony Framework for PHP Web Apps
ASP MVP Web applications and Razor
Web Software Model CS 4640 Programming Languages for Web Applications
Haritha Dasari Josue Balandrano Coronel -
CO6025 Advanced Programming
SharePoint Cloud hosted Apps
ASP.NET Web Forms Vs. ASP.NET MVC ASP.NET is Microsoft’s big leap after Active Server Pages (ASP), ASP.NET provides flexible and unified web development.
Step by Step - AngularJS
Social Media And Global Computing View and Session Data
Data Structures and Database Applications View and Session Data
Angular 2 : CRUD Operations
Web Technologies Computing Science Thompson Rivers University
Chengyu Sun California State University, Los Angeles
Introduction to ASP.NET MVC
Presentation transcript:

Getting started with ASP.NET MVC Dhananjay

Agenda  Getting started with ASP.NET MVC  Understanding Controllers  Understanding Views  Understanding Model  ViewBag, ViewData, and TempData  Strongly Typed and dynamic views  Child Action and Partial Views  Areas  Database first approach  Code first approach  Using client side libraries like jQuery, Ignite UI

Give Away Tweet your experience about webinar using the hashtag #Infragistics or to win cool goodies from us.

I am Dhananjay Kumar  Developer  6 times Microsoft MVP  

ASP.NET MVC Model View Controller

ASP.NET MVC Clean separation of concerns Enables or support Test Driven Development Easy integration with client side libraries like JavaScript, jQuery, and Ignite UI Developer has full control over the rendered HTML Due to stateless nature and URL routing, highly optimized for search engines Supports Authentication, authorization, configuration, compilation and deployment

Controller A Controller does all the actions in MVC. It handles user interactions or inputs. It passes user's data to a Model and selects a View to render on the UI. A Controller is a class It contains one or more methods called Actions An Action can return a simple string or a selected View to the UI Action takes all browser requests or user inputs It retrieves data from the Model It selects the View to be rendered on the UI

Controller

Controller Demo

View Views are the components that display the application's user interface (UI) It renders user interface It contains markup to be rendered with the ViewEngine There are two kinds of ViewEngine in MVC- Razor and ASPX engine Controller may returns View View renders data from the Model returned by the Controller Controller can send data to View

View

View Demo

Model Model is a class which represents the problem domain. Model implements logic for the application data. Model is a class It is accessible to both the view and the controller Views renders data from the model Controller can pass data from model to the view Model class contain the application logic Model is place of the ORM or Data Access frameworks

Model Application data logic ORM Business Logic

Model Demo

Passing Data ViewBag dynamic object to pass data from controller to view ViewData dictionary object to pass data from controller to view TempData dictionary object to pass data from one controller/action to another controller/action

ViewBag and ViewData

Demo on ViewData and ViewBag

ViewBag and ViewData

TempData

TempData is used to pass data from one HTTP request to next HTTP request. In other words, TempData is used to pass data from one controller to another controller or action to another action. TempData is property of BaseController class. TempData stores data in session object TempData is property of ControllerBase class To read data Typecasting and null checking is required. Type of TempData is TempDataDictionary. TempData works with HTTP redirection like HTTP 302/303 status code

TempData Demo

Types of Views Views Dynamic Views Strongly Typed Views

Different kinds of View Demo

Child Action Child Actions are the action methods which can be invoked within a view. Child Actions are the action methods which can be invoked within the view This is used to work with the data in the view, which are not related to the main action method In ASP.NET MVC any action can be used as a child action To use an action only as a child action and attribute it with the ChildActionOnly. It will make sure the action is not called by any user request and will only be used in the view.

Child Action Demo

Areas A MVC application can have any number of Areas Each Areas has its own controllers, models, and views. Physically Areas are put under separate folders. Areas are useful in managing big web applications

Areas Demo

Q& A ?

Summary  Getting started with ASP.NET MVC  Understanding Controllers  Understanding Views  Understanding Model  ViewBag, ViewData, and TempData  Strongly Typed and dynamic views  Child Action and Partial Views  Areas  Database first approach  Code first approach  Using client side libraries like jQuery, Ignite UI

What Infragistics can offer you? We welcome all of you to take advantage of a FREE 30 Day Trial by downloading the product at: Please reach out to us at for any follow up questions you may have. We welcome the opportunity to assist