ASP.NET MVC 4 Introduction

16
Lohith G N Developer Evangelist, Telerik ASP.MVC 4- Introduction

description

 

Transcript of ASP.NET MVC 4 Introduction

Page 1: ASP.NET MVC 4 Introduction

Lohith G N

Developer Evangelist, Telerik

ASP.MVC 4- Introduction

Page 2: ASP.NET 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…

Page 3: ASP.NET MVC 4 Introduction

Agenda

Whats New in MVC4

Enhanced Project

Templates

Mobile Project

Templates

Display Modes

Web API Bundling & Minification

Page 4: ASP.NET MVC 4 Introduction

• 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

Page 5: ASP.NET MVC 4 Introduction
Page 6: ASP.NET MVC 4 Introduction

• Updated to create more modern looking website

• Adaptive rendering – desktop browser and mobile browser, no customization

Default Project Template

Page 7: ASP.NET MVC 4 Introduction

Mobile Web Application with ASP.NET MVC

Page 8: ASP.NET MVC 4 Introduction

• Create site specifically for mobile/tablet browsers

• Use Mobile Application Project Template

• Based on JQuery Mobile

• Optimized touch UI

Mobile Web Apps

Page 9: ASP.NET MVC 4 Introduction

Selective Views

Page 10: ASP.NET MVC 4 Introduction

• 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

Page 11: ASP.NET MVC 4 Introduction

API for every reach

Page 12: ASP.NET MVC 4 Introduction

• 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

Page 13: ASP.NET MVC 4 Introduction

Bundle & Minify

Page 14: ASP.NET MVC 4 Introduction

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

Page 15: ASP.NET MVC 4 Introduction
Page 16: ASP.NET MVC 4 Introduction

@kashyapa | [email protected]

About.me/kashyapa

http://Kashyapas.com

http://Telerikhelper.net