ASP.NET MVC 4 Introduction
-
Upload
lohith-gn -
Category
Technology
-
view
1.449 -
download
4
description
Transcript of ASP.NET MVC 4 Introduction
Lohith G N
Developer Evangelist, Telerik
ASP.MVC 4- Introduction
• Lohith G N
• Developer Evangelist, Telerik
• Microsoft MVP – ASP.NET/IIS – 2011/12
• BDotNet UG Lead
• @kashyapa | [email protected]
• Kashyapas.com
• Telerikhelper.net
• About.me/kashyapa
About Me…
Agenda
Whats New in MVC4
Enhanced Project
Templates
Mobile Project
Templates
Display Modes
Web API Bundling & Minification
• Enhancements in Default Project Templates
• Mobile Project Templates ▫ Jquery Mobile, View Switcher, Browser Overriding
• Display Modes
• Empty Project Template
• Controller in any project folder
• Web API
• Bundling & Minification
• Oauth & Open ID
New Things in MVC4
• Updated to create more modern looking website
• Adaptive rendering – desktop browser and mobile browser, no customization
Default Project Template
Mobile Web Application with ASP.NET MVC
• Create site specifically for mobile/tablet browsers
• Use Mobile Application Project Template
• Based on JQuery Mobile
• Optimized touch UI
Mobile Web Apps
Selective Views
• Select view depending on browser
• Create .mobile pages for e.g. index.mobile.cshtml
• Desktop browser request uses index.cshtml
• Mobile browser request uses index.mobile.cshtml
Display Modes
API for every reach
• Features: ▫ HTTP Programming Model ▫ Support for Routes ▫ Content Negotiation ▫ Model Binding & Validation ▫ Filters, Query Composition ▫ Testable, ▫ Code Based Configuration
Web API
▫ Self Hosting
▫ Custom Help & Test Pages
▫ Monitoring & Diagnostics
▫ Link generation
▫ Web API Project Template
▫ Scaffolding
• Framework, Create HTTP services
• Reach broad range of clients – Browsers/Devices
Bundle & Minify
Bundling & Minification
• Reduce number of HTTP request ▫ Combine individual files into single bundled file for scripts/styles
▫ Minify the contents of the bundle
• Bundles declared & configured in code