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

Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Andreas Granig
 
Best Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdfBest Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdfIdiosysTechnologies1
 
Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commercemanigoyal112
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEOrtus Solutions, Corp
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...OnePlan Solutions
 
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Natan Silnitsky
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEEVICTOR MAESTRE RAMIREZ
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...confluent
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWave PLM
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....kzayra69
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityNeo4j
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmSujith Sukumaran
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceBrainSell Technologies
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsAhmed Mohamed
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Angel Borroy López
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Cizo Technology Services
 

Recently uploaded (20)

Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024Automate your Kamailio Test Calls - Kamailio World 2024
Automate your Kamailio Test Calls - Kamailio World 2024
 
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort ServiceHot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
 
2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva
 
Best Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdfBest Web Development Agency- Idiosys USA.pdf
Best Web Development Agency- Idiosys USA.pdf
 
Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commerce
 
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASEBATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
BATTLEFIELD ORM: TIPS, TACTICS AND STRATEGIES FOR CONQUERING YOUR DATABASE
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
 
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
What is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need ItWhat is Fashion PLM and Why Do You Need It
What is Fashion PLM and Why Do You Need It
 
What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....What are the key points to focus on before starting to learn ETL Development....
What are the key points to focus on before starting to learn ETL Development....
 
EY_Graph Database Powered Sustainability
EY_Graph Database Powered SustainabilityEY_Graph Database Powered Sustainability
EY_Graph Database Powered Sustainability
 
Intelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalmIntelligent Home Wi-Fi Solutions | ThinkPalm
Intelligent Home Wi-Fi Solutions | ThinkPalm
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. Salesforce
 
Unveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML DiagramsUnveiling Design Patterns: A Visual Guide with UML Diagrams
Unveiling Design Patterns: A Visual Guide with UML Diagrams
 
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
Alfresco TTL#157 - Troubleshooting Made Easy: Deciphering Alfresco mTLS Confi...
 
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
Global Identity Enrolment and Verification Pro Solution - Cizo Technology Ser...
 

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