CONTROLLING ASP.NET MVC 4

Similar documents
TEST DRIVEN DEVELOPMENT FOR T-SQL IT S NOT JUST TESTING FIRST!

THE RESURGENCE OF WEBFORMS I M NOT DEAD YET! Philip Japikse MVP, MCSD.Net, MCDBA, CSM, CSP

LESSONS LEARNED: BEING AGILE IN THE WATERFALL SANDBOX

VERSION ASP.NET CORE APIS

DESIGN PATTERNS FOR MERE MORTALS

SECURING ASP.NET CORE APPLICATIONS

20486-Developing ASP.NET MVC 4 Web Applications

Bringing Together One ASP.NET

Studio Productivity Tools Q2 2013

Developing ASP.NET MVC 5 Web Applications

Ten good practices for ASP.NET MVC applications

Asp Net Web Service Project Template Visual Studio 2010

By Philip Japikse MVP, MCSD.NET, MCDBA, CSM, CSP Principal Consultant Pinnacle Solutions Group

IMPLEMENTING MODEL VIEW VIEW-MODEL IN WINJS

Index. Bower, 133, 352 bower.json file, 376 Bundling files, 157

SOLID DESIGN PATTERNS FOR MERE MORTALS

EVALUATION COPY. Unauthorized reproduction or distribution is prohibitied ASP.NET MVC USING C#

Developing ASP.NET MVC 5 Web Applications. Course Outline

Building Effective ASP.NET MVC 5.x Web Applications using Visual Studio 2013

Index. Bootstrap framework ASP.NET MVC project set-up, default template, 223

Development Training. For Developer. 4 th May, AOT Intranet Web Portal

What s New & Awesome in Windows8 HTML Q2 2013

For your convenience Apress has placed some of the front matter material after the index. Please use the Bookmarks and Contents at a Glance links to

JAVASCRIPT FOR THE C# DEVELOPER

20486 Developing ASP.NET MVC 5 Web Applications

BUILDING WEB APPLICATIONS WITH VISUAL STUDIO 2017: USING.NET CORE AND MODERN JAVASCRIPT FRAMEWORKS BY PHILIP JAPIKSE, BEN DEWEY, KEVIN G

ASP.NET CORE 2.0: WHAT YOU NEED TO KNOW

Developing ASP.Net MVC 4 Web Application

ASP.NET MVC Training

COURSE 20486B: DEVELOPING ASP.NET MVC 4 WEB APPLICATIONS

Using Visual Studio 2017

INTRO TO ASP.NET MVC JAY HARRIS.NET DEVELOPER

20486: Developing ASP.NET MVC 4 Web Applications (5 Days)

AGENDA. :: Add Meta Tag for Viewport (inside of head element): :: Add Script that renders HTML5 elements for older versions of Internet Explorer

20486: Developing ASP.NET MVC 4 Web Applications

Working with Controllers

Developing ASP.NET MVC 5 Web Applications

Developing ASP.NET MVC 4 Web Applications

Chapter 7 Detecting Device Capabilities

Chapter 7 BMIS335 Web Design & Development

Asp Net Mvc 5 With Bootstrap And Knockout Js Building Dynamic Responsive Web Applications

Advance Dotnet ( 2 Month )

Simple AngularJS thanks to Best Practices

Course 20486B: Developing ASP.NET MVC 4 Web Applications

Developing ASP.NET MVC 4 Web Applications

Lab 10: Application Architecture Topics

By Philip Japikse MVP, MCSD.Net, MCDBA, CSM Principal Consultant Pinnacle Solutions Group

Programming Fundamentals of Web Applications

CodeValue. C ollege. Prerequisites: Basic knowledge of web development and especially JavaScript.

Syncfusion Report Platform. Version - v Release Date - March 22, 2017

MVC The Good, The Bad and the Evil. Hadi Hariri Developer & Technical Evangelist JetBrains

20486C: Developing ASP.NET MVC 5 Web Applications

Microsoft Developing ASP.NET MVC 4 Web Applications

ASP.NET Using C# (VS2013)

Asp Net Mvc Framework Unleashed

Naresh Information Technologies

Arjen de Blok. Senior Technical Consultant bij ICT Groep ( sinds 1995 Programmeren sinds 1990 Technologiën. Links

Financial. AngularJS. AngularJS.

Visual Studio Course Developing ASP.NET MVC 5 Web Applications

ASP.NET MVC 4 Using C# Evaluation Copy. Student Guide Revision 4.5. Object Innovations Course 4143

Financial. AngularJS. AngularJS. Download Full Version :

EXAMGOOD QUESTION & ANSWER. Accurate study guides High passing rate! Exam Good provides update free of charge in one year!

Technology Feasibility October 22, 2013

Developing ASP.NET MVC 4 Web Applications

Pro ASP.NET MVC 2 Framework

Professional ASP.NET MVC 4

Integrating Angular with ASP.NET Core RESTful Services. Dan Wahlin

Mobile Development with Visual Studio 2015

Exam Questions

Justin Jones 21 st February 2013 Version 1.1 Setting up an MVC4 Multi-Tenant Site

Understanding ASP.NET MVC Model Binding

Index A, B. Cascading Style Sheets (CSS), 45 Columns, 325 calculations, 330 choice type, 328

AGENDA :: MULTIMEDIA TOOLS :: CLASS NOTES. INSTALLING FONTS :: Download, Install, & Embed Your Fonts. LECTURE :: Responsive Web Design [RWD]

Course Outline. Developing Web Applications with ASP.Net MVC 5. Course Description: Pre-requisites: Course Content:

Jim Jackson II Ian Gilman

Web Development and HTML. Shan-Hung Wu CS, NTHU

New frontier of responsive & device-friendly web sites

Front-End UI: Bootstrap

ComponentSpace SAML v2.0 Examples Guide

PASS4TEST 専門 IT 認証試験問題集提供者

Mobile Web Development

Course Outline. ASP.NET MVC 5 Development Training Course ASPNETMVC5: 5 days Instructor Led. About this Course

MVC :: Understanding Models, Views, and Controllers

django-baton Documentation

IN PRACTICE. Daniele Bochicchio Stefano Mostarda Marco De Sanctis. Includes 106 practical techniques MANNING

Time-Saving VS11 and ASP.NET 4.5 Features You Shouldn t Miss

A-1. Installing SQL Server 2016 Developer. Downloading Microsoft SQL Server 2016 Developer

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer ASP.NET WP

Gauge Chart Components Html5 Javascript Libraries

Static Webpage Development

Mix It Up: Visual Studio 2010 and ASP.NET 4.0. Singapore 25 March 2009

Mobile Apps with jquery Mobile. Kai Tödter Siemens Building Technologies

TSInfo Technologies (OPC) Pvt Ltd

Build Native-like Experiences in HTML5

Open Source Library Developer & IT Pro

Apex TG India Pvt. Ltd.

Web API Best Practices

AngularJS Fundamentals

Introduction to IdentityServer

ComponentSpace SAML v2.0 IdentityServer4 Integration Guide

Transcription:

www.twitter.com/telerik www.facebook.com/telerik CONTROLLING ASP.NET MVC 4 Philip Japikse (@skimedic) phil.japikse@telerik.com www.skimedic.com/blog MVP, MCSD.Net, MCDBA, CSM, CSP Agile Practices Evangelist, Telerik

WHO AM I? Agile Practices Evangelist, Telerik, Inc. Microsoft MVP, MCSD, MCDBA, CSM, CSP Lead Director, Cincinnati.NET User s Group Founder, Agile Conferences, Inc. Host, Zero To Agile Podcast www.telerik.com/zerotoagile 8/30/2012 2

CONFIGURATION CHANGES 4/19/2008 3

APP_START New folder holds: AuthConfig BundleConfig FilterConfig RouteConfig WebApiConfig 4/19/2008 4

GLOBAL.ASAX CHANGES protected void Application_Start() { //area registration, etc WebApiConfig.Register(GlobalConfiguration.Configuration); FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); RouteConfig.RegisterRoutes(RouteTable.Routes); BundleConfig.RegisterBundles(BundleTable.Bundles); AuthConfig.RegisterAuth(); } 4/19/2008 5

DEMO CONFIGURATION CHANGES 4/19/2008 6

UPDATED TEMPLATES

ASP.NET MVC STARTER PROJECTS Intranet Starter website that uses forms authentication Internet Starter website that uses Windows authentication Richer UI Mobile Includes KnockoutJS, JQueryUI Optimized for Mobile Devices WebAPI Includes JQueryMobile HTTP Service Application 8

STARTER SITES 9

RICHER UI 10

MVC TEMPLATES IN RTM MVC templates are changed! No longer have responsive UI

ADAPTIVE RENDERING MEDIA QUERIES @media only screen and (max-width: 850px) {.. } NOTE: @media is a CSS3 element rendered by the browser, not a MVC4 specific item 12

DEMO IMPROVED TEMPLATES

MOBILE

HTML5 - IN THE BOX <ul data-role="listview" data-inset="true"> <li data-role="list-divider">navigation</li> <li>@html.actionlink("home", "Index", "Home")</li> <li>@html.actionlink("contact", "Contact", "Home")</li> </ul>

VIEWPORT META TAG <meta name="viewport" content="width=device-width" />

ADD JQUERY MVC TO INTERNET APPS (NuGet) Install-Package jquery.mobile.mvc Adds: _Layout.Mobile.cshtml _ViewSwitcher.cshtml ViewSwitcherController.cs

VIEW SWITCHING

CREATING DISPLAY MODES DisplayModeProvider.Instance.Modes.Insert(0, { new DefaultDisplayMode("iPhone") ContextCondition = (context => context.getoverriddenuseragent().indexof("iphone", StringComparison.OrdinalIgnoreCase) >= 0) });

DEMO DISPLAY MODES, VIEW SWITCHING, BROWSER OVERRIDING

ASYNC

TASK SUPPORT - ASYNC CONTROLLERS Async action methods Written as single methods Return Task or Task<ActionResult> Support for Timeouts Add CancellationToken parameter

ASYNC CONTROLLERS public class HomeController : AsyncController { public async Task<ActionResult> Index() { var client = new HttpClient(); var response = await client.getasync( Url.Action("gallery", "photo", null, Request.Url.Scheme)); var jss = new JavaScriptSerializer(); var result = jss.deserialize<list<photo>>( } } await response.content.readasstringasync()); return View(result);

HANDLING TIMEOUTS [AsyncTimeout(5000)] [HandleError(ExceptionType = typeof(taskcanceledexception), View = "TimedOut")]

DEMO ASYNC

WEBAPI

ASP.NET WEB API Modern HTTP Programming Model Routing Content Negotiation Model Binding and Validation Filters Query Composition Improved Testability Improved Inversion of Control Code-Based configuration Self-Hostable

DEMO WEBAPI

ADD WEBAPI CONTROLLER Derives from API Controller

WHAT S NOT IN MVC4 (YET) ASP.NET Single Page Application (postponed) SignalR (postponed) Run Recipe Removed from VS

UPGRADING MVC3 PROJECTS Create new MVC4 Project Copy Views, Controllers, Code, Content Update all web config files System.Web.MVC -> Version 4 System.Web.WebPages -> Version 2 System.Web.Helpers -> Version 2 System.Web.WebPages.Razor -> Version 2 Follow: http://www.asp.net/whitepapers/mvc4-release-notes 4/19/2008 31

BREAKING CHANGES Removed from Razor ModelSpan, Mvc<Language>RazorCodeGenerator, MvcVBRazorCodeParser WebMatrix takes over URL for Forms Auth Breaks MVC RTM applications Requires MVC3 Tools Update or Manual updates from http://www.asp.net/whitepapers/mvc4-release-notes 4/19/2008 32

CONTACT ME phil@telerik.com www.skimedic.com/blog www.twitter.com/skimedic www.telerik.com/zerotoagile 8/30/2012 33