SlideShare a Scribd company logo
1 of 32
Hatem Hamad 
Nov 2014
 What is ASP.NET MVC? 
 ASP.NET MVC Power. 
 ASP.NET Web Forms vs. ASP.NET MVC 
 What is MVC? 
 ASP.NET MVC Parts: 
Model 
 Controller 
 View 
 Router
 New Web Application (Presentation Layer). 
 Based on Model-View-Controller Design 
Pattern.
Complete control on HTML. 
Smooth Web 2.0 Development . 
SEO-friendly URLs. 
 Easy Test Driven Development (TDD). 
 Stateless.
 ASP.NET Web Forms 
 Advantages: 
▪ Fast Development. 
▪ Windows Application Development Experience. 
▪ Event Driven. 
▪ View State. 
▪ Web Controls. 
 Disadvantages: 
▪ Hard to Control HTML. 
▪ Unfriendly URLs. 
▪ Single “Form” tag in single page. 
▪ Hardly Extensible (Ex: JavaScript Libraries ,CSS , etc..)
 ASP.NET MVC 
 Advantages: 
▪ Model-View-Controller Design Pattern. 
▪ Web Application Development Experience. 
▪ Easy to control HTML. 
▪ Razor view engine 
▪ One of the greatest view engines 
▪ With intellisense, integrated in Visual Studio 
▪ Reuse of current skills (C#, LINQ, HTML, etc.) 
▪ Search engine optimization (SEO) URL’s. 
▪ Adopt REST concepts. 
 Disadvantages: 
▪ Stateless.
 ASP.NET MVC 
 References: 
▪ http://en.wikipedia.org/wiki/ 
ASP.NET_MVC_Framework 
▪ http://www.dotnet-tricks.com/ 
Tutorial/mvc/ 
XWX7210713-A-brief 
-history-of-Asp.Net-MVC 
-framework.html
Model–view–controller (MVC) is a software 
architecture pattern. 
 Code reusability and separation of concerns 
 Originally developed for 
desktop, then adapted 
for internet applications.
 Model: 
 Set of classes that describes the data we are 
working with as well as the business 
 Rules for how the data can be 
changed and manipulated 
 May contain data validation rules
 View: 
 Defines how the application’s user interface (UI) will be 
displayed 
 Web: Template to dynamically generate HTML
 Controller: 
 The core MVC component 
 Process the requests with the help of views and models 
 A set of classes that handles 
 Communication from the user 
 Interactions between Model(s) & View(s) 
 Every controller has one or more "Actions"
 Model ( Data Object). 
 Controller (Control Application Actions). 
 View (Renders HTML). 
 Router (URL Mapping).
 Incoming request routed to Controller 
 For web: HTTP request 
 Controller processes request and creates 
presentation Model 
 Controller also selects appropriate result (view) 
 Model is passed to View 
 View transforms Model into appropriate 
output format (HTML) 
 Response is rendered (HTTP Response)
 Helps with concurrent development 
 Performing tasks concurrently 
▪ One developer works on views 
▪ Another works on controllers 
 Almost anything can be replaced or extended 
 Interface-based architecture 
 Model binders (request data to CLR objects) 
 Custom action result types 
 View engine (Razor, WebForms, NHaml, Spark) 
 View helpers (HTML, AJAX, URL, etc.) 
 Custom data providers (ADO.NET), etc.
http://yoursite.com/Security/Login 
http://yoursite.com/Login 
http://yoursite.com/Products/Details/58 
http://yoursite.com/Products/58 
http://yoursite.com/Customers/Details.aspx?id=21 
http://yoursite.com/Customers/Details/21 
Default Value 
Regular Expression 
URL
 REST-like 
 /products/update 
 /Wiki/posts/2014/11/28/mvc-is-cool 
 Friendlier to humans 
 /product.aspx?catId=123 or post.php?id=123 
 Becomes /products/chocolate/
 Technologies that ASP.NET MVC uses 
 C# (OOP, Unit Testing, async, etc..) 
 HTML(5) and CSS 
 JavaScript (jQuery, KendoUI, etc..) 
 AJAX, Single-page apps 
 Databases (MS SQL) 
 Entity Framework and LINQ) 
 Web and HTTP
 Hello World Demo. 
 Single Form Demo. 
 Two Forms Demo. 
 JavaScript Demo. 
 Routers Demo.
 Tools that we need: 
 IDE: Visual Studio 2012<2013 more efficient> 
(Express for Web) 
▪ JustCode and Web Essentals 
 Framework: .NET Framework 4.5 
 Web server: IIS 8 (Express) 
 Data: MS SQL Sever (Express or LocalDB) 
 Web Platform Installer 4.0 will install everything we need for 
us 
 microsoft.com/web/downloads/platform.aspx 
 Install Visual Studio Express 2012 for Web
27 
Static files (CSS, Images, etc.) 
All controllers and actions 
JavaScript files (jQuery, Modernizr, knockout, etc.) 
View templates 
_Layout.cshtml – master page (main template) 
Application_Start() –The entry point of the application 
Configuration file
 Free, open source package management 
 Makes it easy to install and 
update open source libraries 
and tools 
 Part of Visual Studio 2012 
 Configurable package sources 
 GUI-based package installer 
 Package manager console 
30
Install and update packages as easy as adding a 
reference
Hatem Hamad 
E-mail : hatem.h.hamad@gmail.com 
LinkedIn: Hatem Hamad

More Related Content

What's hot

ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC 5 - EF 6 - VS2015ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC 5 - EF 6 - VS2015Hossein Zahed
 
Asp.net MVC training session
Asp.net MVC training sessionAsp.net MVC training session
Asp.net MVC training sessionHrichi Mohamed
 
Introduction to ASP.NET MVC
Introduction to ASP.NET MVC Introduction to ASP.NET MVC
Introduction to ASP.NET MVC Joe Wilson
 
MVC Pattern. Flex implementation of MVC
MVC Pattern. Flex implementation of MVCMVC Pattern. Flex implementation of MVC
MVC Pattern. Flex implementation of MVCAnton Krasnoshchok
 
Introduction to ASP.NET MVC
Introduction to ASP.NET MVCIntroduction to ASP.NET MVC
Introduction to ASP.NET MVCSunpawet Somsin
 
MVC Architecture in ASP.Net By Nyros Developer
MVC Architecture in ASP.Net By Nyros DeveloperMVC Architecture in ASP.Net By Nyros Developer
MVC Architecture in ASP.Net By Nyros DeveloperNyros Technologies
 
Getting started with MVC 5 and Visual Studio 2013
Getting started with MVC 5 and Visual Studio 2013Getting started with MVC 5 and Visual Studio 2013
Getting started with MVC 5 and Visual Studio 2013Thomas Robbins
 
MVC ppt presentation
MVC ppt presentationMVC ppt presentation
MVC ppt presentationBhavin Shah
 
Introduction to ASP.NET MVC
Introduction to ASP.NET MVCIntroduction to ASP.NET MVC
Introduction to ASP.NET MVCKhaled Musaied
 
ASP.NET MVC Presentation
ASP.NET MVC PresentationASP.NET MVC Presentation
ASP.NET MVC Presentationivpol
 
CTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVCCTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVCBarry Gervin
 

What's hot (20)

MSDN - ASP.NET MVC
MSDN - ASP.NET MVCMSDN - ASP.NET MVC
MSDN - ASP.NET MVC
 
ASP .net MVC
ASP .net MVCASP .net MVC
ASP .net MVC
 
Mvc summary
Mvc summaryMvc summary
Mvc summary
 
ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC 5 - EF 6 - VS2015ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC 5 - EF 6 - VS2015
 
Asp.net MVC training session
Asp.net MVC training sessionAsp.net MVC training session
Asp.net MVC training session
 
Introduction to ASP.NET MVC
Introduction to ASP.NET MVC Introduction to ASP.NET MVC
Introduction to ASP.NET MVC
 
ASP .NET MVC - best practices
ASP .NET MVC - best practicesASP .NET MVC - best practices
ASP .NET MVC - best practices
 
ASP.NET MVC 3
ASP.NET MVC 3ASP.NET MVC 3
ASP.NET MVC 3
 
MVC Pattern. Flex implementation of MVC
MVC Pattern. Flex implementation of MVCMVC Pattern. Flex implementation of MVC
MVC Pattern. Flex implementation of MVC
 
Asp.net mvc
Asp.net mvcAsp.net mvc
Asp.net mvc
 
Mvc fundamental
Mvc fundamentalMvc fundamental
Mvc fundamental
 
Introduction to ASP.NET MVC
Introduction to ASP.NET MVCIntroduction to ASP.NET MVC
Introduction to ASP.NET MVC
 
ASP.NET MVC for Begineers
ASP.NET MVC for BegineersASP.NET MVC for Begineers
ASP.NET MVC for Begineers
 
MVC Architecture in ASP.Net By Nyros Developer
MVC Architecture in ASP.Net By Nyros DeveloperMVC Architecture in ASP.Net By Nyros Developer
MVC Architecture in ASP.Net By Nyros Developer
 
Getting started with MVC 5 and Visual Studio 2013
Getting started with MVC 5 and Visual Studio 2013Getting started with MVC 5 and Visual Studio 2013
Getting started with MVC 5 and Visual Studio 2013
 
MVC ppt presentation
MVC ppt presentationMVC ppt presentation
MVC ppt presentation
 
Introduction to ASP.NET MVC
Introduction to ASP.NET MVCIntroduction to ASP.NET MVC
Introduction to ASP.NET MVC
 
ASP.NET MVC Presentation
ASP.NET MVC PresentationASP.NET MVC Presentation
ASP.NET MVC Presentation
 
CTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVCCTTDNUG ASP.NET MVC
CTTDNUG ASP.NET MVC
 
Mvc3 crash
Mvc3 crashMvc3 crash
Mvc3 crash
 

Viewers also liked

Presentation of the Instance Model Bus
Presentation of the Instance Model BusPresentation of the Instance Model Bus
Presentation of the Instance Model Busjccastrejon
 
Aspect-Oriented Programming and Depedency Injection
Aspect-Oriented Programming and Depedency InjectionAspect-Oriented Programming and Depedency Injection
Aspect-Oriented Programming and Depedency InjectionRobert Lemke
 
Web Development Ppt
Web Development PptWeb Development Ppt
Web Development PptBruce Tucker
 
Web Development on Web Project Presentation
Web Development on Web Project PresentationWeb Development on Web Project Presentation
Web Development on Web Project PresentationMilind Gokhale
 
Ppt of web development
Ppt of web developmentPpt of web development
Ppt of web developmentbethanygfair
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to htmlvikasgaur31
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTMLMayaLisa
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languagesVarun Garg
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS PresentationShawn Calvert
 

Viewers also liked (15)

MexADL
MexADLMexADL
MexADL
 
Presentation of the Instance Model Bus
Presentation of the Instance Model BusPresentation of the Instance Model Bus
Presentation of the Instance Model Bus
 
Aspect-Oriented Programming and Depedency Injection
Aspect-Oriented Programming and Depedency InjectionAspect-Oriented Programming and Depedency Injection
Aspect-Oriented Programming and Depedency Injection
 
Web Development Ppt
Web Development PptWeb Development Ppt
Web Development Ppt
 
Introduction to Html5
Introduction to Html5Introduction to Html5
Introduction to Html5
 
Web Development on Web Project Presentation
Web Development on Web Project PresentationWeb Development on Web Project Presentation
Web Development on Web Project Presentation
 
html5.ppt
html5.ppthtml5.ppt
html5.ppt
 
Up to Speed on HTML 5 and CSS 3
Up to Speed on HTML 5 and CSS 3Up to Speed on HTML 5 and CSS 3
Up to Speed on HTML 5 and CSS 3
 
jQuery Essentials
jQuery EssentialsjQuery Essentials
jQuery Essentials
 
Ppt of web development
Ppt of web developmentPpt of web development
Ppt of web development
 
Introduction to html
Introduction to htmlIntroduction to html
Introduction to html
 
Html Ppt
Html PptHtml Ppt
Html Ppt
 
Introduction to HTML
Introduction to HTMLIntroduction to HTML
Introduction to HTML
 
Lect 1. introduction to programming languages
Lect 1. introduction to programming languagesLect 1. introduction to programming languages
Lect 1. introduction to programming languages
 
Html / CSS Presentation
Html / CSS PresentationHtml / CSS Presentation
Html / CSS Presentation
 

Similar to ASP.net MVC Introduction Wikilogia (nov 2014)

Introduction to ASP.NET MVC 1.0
Introduction to ASP.NET MVC 1.0Introduction to ASP.NET MVC 1.0
Introduction to ASP.NET MVC 1.0Shiju Varghese
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET PresentationRasel Khan
 
Web Development Today
Web Development TodayWeb Development Today
Web Development Todaybretticus
 
Web development concepts using microsoft technologies
Web development concepts using microsoft technologiesWeb development concepts using microsoft technologies
Web development concepts using microsoft technologiesHosam Kamel
 
Introduction To Mvc
Introduction To MvcIntroduction To Mvc
Introduction To MvcVolkan Uzun
 
MVC Demystified: Essence of Ruby on Rails
MVC Demystified: Essence of Ruby on RailsMVC Demystified: Essence of Ruby on Rails
MVC Demystified: Essence of Ruby on Railscodeinmotion
 
Single Page Apps
Single Page AppsSingle Page Apps
Single Page AppsGil Fink
 
Technoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development servicesTechnoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development servicesAaron Jacobson
 
Using MVC with Kentico 8
Using MVC with Kentico 8Using MVC with Kentico 8
Using MVC with Kentico 8Thomas Robbins
 
Asp.net mvc 5 course module 1 overview
Asp.net mvc 5 course   module 1 overviewAsp.net mvc 5 course   module 1 overview
Asp.net mvc 5 course module 1 overviewSergey Seletsky
 
Web tier-framework-mvc
Web tier-framework-mvcWeb tier-framework-mvc
Web tier-framework-mvcKashfUlHuda1
 
Which is better asp.net mvc vs asp.net
Which is better  asp.net mvc vs asp.netWhich is better  asp.net mvc vs asp.net
Which is better asp.net mvc vs asp.netConcetto Labs
 
Mvc presentation
Mvc presentationMvc presentation
Mvc presentationMaslowB
 
Asp.net With mvc handson
Asp.net With mvc handsonAsp.net With mvc handson
Asp.net With mvc handsonPrashant Kumar
 

Similar to ASP.net MVC Introduction Wikilogia (nov 2014) (20)

Introduction to ASP.NET MVC 1.0
Introduction to ASP.NET MVC 1.0Introduction to ASP.NET MVC 1.0
Introduction to ASP.NET MVC 1.0
 
ASP.NET Presentation
ASP.NET PresentationASP.NET Presentation
ASP.NET Presentation
 
Web Development Today
Web Development TodayWeb Development Today
Web Development Today
 
Mvc Brief Overview
Mvc Brief OverviewMvc Brief Overview
Mvc Brief Overview
 
Web development concepts using microsoft technologies
Web development concepts using microsoft technologiesWeb development concepts using microsoft technologies
Web development concepts using microsoft technologies
 
Introduction To Mvc
Introduction To MvcIntroduction To Mvc
Introduction To Mvc
 
MVC Demystified: Essence of Ruby on Rails
MVC Demystified: Essence of Ruby on RailsMVC Demystified: Essence of Ruby on Rails
MVC Demystified: Essence of Ruby on Rails
 
Asp.net mvc
Asp.net mvcAsp.net mvc
Asp.net mvc
 
ASP.NET Lecture 1
ASP.NET Lecture 1ASP.NET Lecture 1
ASP.NET Lecture 1
 
Single Page Apps
Single Page AppsSingle Page Apps
Single Page Apps
 
Technoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development servicesTechnoligent providing custom ASP.NET MVC development services
Technoligent providing custom ASP.NET MVC development services
 
Using MVC with Kentico 8
Using MVC with Kentico 8Using MVC with Kentico 8
Using MVC with Kentico 8
 
Asp.net mvc 5 course module 1 overview
Asp.net mvc 5 course   module 1 overviewAsp.net mvc 5 course   module 1 overview
Asp.net mvc 5 course module 1 overview
 
Web tier-framework-mvc
Web tier-framework-mvcWeb tier-framework-mvc
Web tier-framework-mvc
 
Asp.Net MVC Intro
Asp.Net MVC IntroAsp.Net MVC Intro
Asp.Net MVC Intro
 
Which is better asp.net mvc vs asp.net
Which is better  asp.net mvc vs asp.netWhich is better  asp.net mvc vs asp.net
Which is better asp.net mvc vs asp.net
 
Mvc presentation
Mvc presentationMvc presentation
Mvc presentation
 
MVC 4
MVC 4MVC 4
MVC 4
 
MVC
MVCMVC
MVC
 
Asp.net With mvc handson
Asp.net With mvc handsonAsp.net With mvc handson
Asp.net With mvc handson
 

Recently uploaded

Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfkalichargn70th171
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxComplianceQuest1
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comFatema Valibhai
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVshikhaohhpro
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionSolGuruz
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AIABDERRAOUF MEHENNI
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about usDynamic Netsoft
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantAxelRicardoTrocheRiq
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...MyIntelliSource, Inc.
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfkalichargn70th171
 

Recently uploaded (20)

Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdfThe Ultimate Test Automation Guide_ Best Practices and Tips.pdf
The Ultimate Test Automation Guide_ Best Practices and Tips.pdf
 
A Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docxA Secure and Reliable Document Management System is Essential.docx
A Secure and Reliable Document Management System is Essential.docx
 
HR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.comHR Software Buyers Guide in 2024 - HRSoftware.com
HR Software Buyers Guide in 2024 - HRSoftware.com
 
Optimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTVOptimizing AI for immediate response in Smart CCTV
Optimizing AI for immediate response in Smart CCTV
 
Diamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with PrecisionDiamond Application Development Crafting Solutions with Precision
Diamond Application Development Crafting Solutions with Precision
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AISyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
SyndBuddy AI 2k Review 2024: Revolutionizing Content Syndication with AI
 
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...Call Girls In Mukherjee Nagar 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
Call Girls In Mukherjee Nagar 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SE...
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
DNT_Corporate presentation know about us
DNT_Corporate presentation know about usDNT_Corporate presentation know about us
DNT_Corporate presentation know about us
 
Salesforce Certified Field Service Consultant
Salesforce Certified Field Service ConsultantSalesforce Certified Field Service Consultant
Salesforce Certified Field Service Consultant
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
Steps To Getting Up And Running Quickly With MyTimeClock Employee Scheduling ...
 
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdfLearn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
Learn the Fundamentals of XCUITest Framework_ A Beginner's Guide.pdf
 

ASP.net MVC Introduction Wikilogia (nov 2014)

  • 2.  What is ASP.NET MVC?  ASP.NET MVC Power.  ASP.NET Web Forms vs. ASP.NET MVC  What is MVC?  ASP.NET MVC Parts: Model  Controller  View  Router
  • 3.  New Web Application (Presentation Layer).  Based on Model-View-Controller Design Pattern.
  • 4. Complete control on HTML. Smooth Web 2.0 Development . SEO-friendly URLs.  Easy Test Driven Development (TDD).  Stateless.
  • 5.  ASP.NET Web Forms  Advantages: ▪ Fast Development. ▪ Windows Application Development Experience. ▪ Event Driven. ▪ View State. ▪ Web Controls.  Disadvantages: ▪ Hard to Control HTML. ▪ Unfriendly URLs. ▪ Single “Form” tag in single page. ▪ Hardly Extensible (Ex: JavaScript Libraries ,CSS , etc..)
  • 6.  ASP.NET MVC  Advantages: ▪ Model-View-Controller Design Pattern. ▪ Web Application Development Experience. ▪ Easy to control HTML. ▪ Razor view engine ▪ One of the greatest view engines ▪ With intellisense, integrated in Visual Studio ▪ Reuse of current skills (C#, LINQ, HTML, etc.) ▪ Search engine optimization (SEO) URL’s. ▪ Adopt REST concepts.  Disadvantages: ▪ Stateless.
  • 7.  ASP.NET MVC  References: ▪ http://en.wikipedia.org/wiki/ ASP.NET_MVC_Framework ▪ http://www.dotnet-tricks.com/ Tutorial/mvc/ XWX7210713-A-brief -history-of-Asp.Net-MVC -framework.html
  • 8. Model–view–controller (MVC) is a software architecture pattern.  Code reusability and separation of concerns  Originally developed for desktop, then adapted for internet applications.
  • 9.  Model:  Set of classes that describes the data we are working with as well as the business  Rules for how the data can be changed and manipulated  May contain data validation rules
  • 10.
  • 11.  View:  Defines how the application’s user interface (UI) will be displayed  Web: Template to dynamically generate HTML
  • 12.
  • 13.  Controller:  The core MVC component  Process the requests with the help of views and models  A set of classes that handles  Communication from the user  Interactions between Model(s) & View(s)  Every controller has one or more "Actions"
  • 14.
  • 15.  Model ( Data Object).  Controller (Control Application Actions).  View (Renders HTML).  Router (URL Mapping).
  • 16.  Incoming request routed to Controller  For web: HTTP request  Controller processes request and creates presentation Model  Controller also selects appropriate result (view)  Model is passed to View  View transforms Model into appropriate output format (HTML)  Response is rendered (HTTP Response)
  • 17.
  • 18.
  • 19.  Helps with concurrent development  Performing tasks concurrently ▪ One developer works on views ▪ Another works on controllers  Almost anything can be replaced or extended  Interface-based architecture  Model binders (request data to CLR objects)  Custom action result types  View engine (Razor, WebForms, NHaml, Spark)  View helpers (HTML, AJAX, URL, etc.)  Custom data providers (ADO.NET), etc.
  • 20. http://yoursite.com/Security/Login http://yoursite.com/Login http://yoursite.com/Products/Details/58 http://yoursite.com/Products/58 http://yoursite.com/Customers/Details.aspx?id=21 http://yoursite.com/Customers/Details/21 Default Value Regular Expression URL
  • 21.  REST-like  /products/update  /Wiki/posts/2014/11/28/mvc-is-cool  Friendlier to humans  /product.aspx?catId=123 or post.php?id=123  Becomes /products/chocolate/
  • 22.  Technologies that ASP.NET MVC uses  C# (OOP, Unit Testing, async, etc..)  HTML(5) and CSS  JavaScript (jQuery, KendoUI, etc..)  AJAX, Single-page apps  Databases (MS SQL)  Entity Framework and LINQ)  Web and HTTP
  • 23.  Hello World Demo.  Single Form Demo.  Two Forms Demo.  JavaScript Demo.  Routers Demo.
  • 24.  Tools that we need:  IDE: Visual Studio 2012<2013 more efficient> (Express for Web) ▪ JustCode and Web Essentals  Framework: .NET Framework 4.5  Web server: IIS 8 (Express)  Data: MS SQL Sever (Express or LocalDB)  Web Platform Installer 4.0 will install everything we need for us  microsoft.com/web/downloads/platform.aspx  Install Visual Studio Express 2012 for Web
  • 25.
  • 26.
  • 27. 27 Static files (CSS, Images, etc.) All controllers and actions JavaScript files (jQuery, Modernizr, knockout, etc.) View templates _Layout.cshtml – master page (main template) Application_Start() –The entry point of the application Configuration file
  • 28.
  • 29.
  • 30.  Free, open source package management  Makes it easy to install and update open source libraries and tools  Part of Visual Studio 2012  Configurable package sources  GUI-based package installer  Package manager console 30
  • 31. Install and update packages as easy as adding a reference
  • 32. Hatem Hamad E-mail : hatem.h.hamad@gmail.com LinkedIn: Hatem Hamad