Ori Calvo, 2010 Hi-Tech College

Slides:



Advertisements
Similar presentations
Introduction to ASP.NET MVC
Advertisements

Designing, Deploying and Managing Workflow in SharePoint Sites Steve Heaney Product Development Manager OBS
Sharpen Your MVC Views with Razor By Jon Marozick.
Alpha Anywhere Product Roadmap and Overview
{ Model View Controller ASP.NET By Scott Crooks & Maggie Wettergreen.
What’s New in ASP.NET 4.5 Ori Calvo, 2012 John Bryce Hi-Tech College
Aneef Fashir Software Architect Assette. About Myself 5 years of experience in programming. BSc(Hons) in Computer Science and MIS. Currently working at.
ASP.NET Web Forms vs. MVC Choosing the right one for web development Harish Ranganathan Senior Evangelist Microsoft Corporation.
Fabian Vilers Hands on ASP.NET MVC.
DEV392: Extending SharePoint Products And Technologies Through Web Parts And ASP.NET Clint Covington, Program Manager Data And Developer Services - Office.
Kashif Jalal CA-240 (072) Web Development Using ASP.NET CA – 240 Kashif Jalal Welcome to week – 2 of…
Create Windows ® Applications with.NET Allan Knudsen.NET Developer Evangelist Microsoft.
Access Web Apps – OK, Now What? EXTENDING ACCESS WEB APPS George Young Dawson Butte Software ACCESS DAY – OCTOBER DENVER,
Virtual techdays INDIA │ august 2010 Building ASP.NET applications using SQL Server Compact Chaitanya Solapurkar │ Partner Technical Consultant,
User Group 2015 Version 5 Features & Infrastructure Enhancements.
Create with SharePoint 2010 Jen Dodd Sr. Solutions Consultant
ASP.NET MVC 3 and Some 4 JaxCodeCamp August 2011.
Windows.Net Programming Series Preview. Course Schedule CourseDate Microsoft.Net Fundamentals 01/13/2014 Microsoft Windows/Web Fundamentals 01/20/2014.
Ori Calvo, 2010 “If people want to have maximum reach across *all* devices then HTML will provide the broadest reach” Scott Guthrie,
Architecture Of ASP.NET. What is ASP?  Server-side scripting technology.  Files containing HTML and scripting code.  Access via HTTP requests.  Scripting.
An Introduction to ASP.NET Ed Dunhill blogs.msdn.com/edunhill SLIDE7.
ASP.NET  ASP.NET is a web development platform, which provides a programming model, a comprehensive software infrastructure and various services required.
Building Web Sites with ASP.NET MVC Framework Noam King CTO Sela College
Introducing Reporting Services for SQL Server 2005.
ASP.NET Web Application and Development Digital Media Department Unit Credit Value : 4 Essential Learning time : 120 hours Digital.
Introduction to ASP.NET MVC Information for this presentation was taken from Pluralsight Building Applications with ASP.NET MVC 4.
Microsoft SharePoint Server 2010 for the Microsoft ASP.NET Developer Yaroslav Pentsarskyy
Murach’s ASP.NET 4.0/VB, C1© 2006, Mike Murach & Associates, Inc.Slide 1.
Expression Web 3... now with TFS!. What is Expression Web 3? Professional web design and development tool Create standards-based Web sites faster & easier.
Jonathan Canfield Mavin Lisa Giss Professor Kenytt D. Avery
Lesson 2 What is ASP.NET? What is ASP.NET? What is Web Matrix? What is Web Matrix? What are the features of Web Matrix? What are the features of Web Matrix?
Office Business Applications Workshop Defining Business Process and Workflows.
Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft's first server-side script engine for dynamically generated web pages.
WEB320 Migrating ASP.NET 1.x Applications to ASP.NET 2.0 Stefan Schackow Program Manager Web Platform and Tools Team Microsoft Corporation.
Getting Started with ASP.NET MVC BRIJ BHUSHAN MISHRA.
Web Access. Overview  Purpose  Prerequisites  Install Components  Enable Virtual Directories  IIS Configuration & Security  Troubleshooting.
Getting started with ASP.NET MVC Dhananjay
Windows SharePoint Services Installation and Configuration.
ASP.NET MVC An Introduction. What is MVC The Model-View-Controller (MVC) is an architectural pattern separates an application into three main components:
Text INTRODUCTION TO ASP.NET. InterComm Campaign Guidelines CONFIDENTIAL Simply Server side language Simplified page development model Modular, well-factored,
05 | Integrating JavaScript and MVC 4 Jon Galloway | Tech Evangelist Christopher Harrison | Head Geek.
Virtual techdays INDIA │ 9-11 February 2011 SESSION TITLE Kamala Rajan S │ Technical Manager, Marlabs.
Jean-Claude Trachsel Senior Consultant, Trivadis AG The good news.
Workflow in Microsoft Office SharePoint Server Jessica Gruber Consultant Microsoft Corporation.
What was new in VS Studio 2008 A bird eye view from the height of ft By: Shahzad Sarwar Software Architect Comsoft computer consultants.
Entity Framework Database Connection with ASP Notes from started/getting-started-with-ef-using-mvc/creating-an-
Introduction to ASP.NET development. Background ASP released in 1996 ASP supported for a minimum 10 years from Windows 8 release ASP.Net 1.0 released.
Modern Development Technologies in SharePoint SHAREPOINT SATURDAY OMAHA APRIL, 2016.
The New Face of ASP.NET ASP.NET MVC, Razor, and jQuery Ido Flatow | Senior Architect | Sela | This session is.
Bob German Principal Architect Developing SharePoint Applications with MVC and Entity Framework.
//liveVirtualacademy2011/ What’s New for ASP.NET 4.5 and Web Development in Visual Studio 11 Developer Preview Γιώργος Καπνιάς MVP, MCT, MCDP, MCDBA, MCTS,
A S P. Outline  The introduction of ASP  Why we choose ASP  How ASP works  Basic syntax rule of ASP  ASP’S object model  Limitations of ASP  Summary.
INTRODUCTION TO MVC BY SUHA MNEIMNEH. WHAT’S THE AGENDA What is MVC? MVC components MVC vs web forms vs ASP.NET vocabulary When to create MVC application.
© Copyright SELA software & Education Labs Ltd Baruch Hirsch St.Bnei Brak Israel
Introduction to MVC Slavomír Moroz. Revision from Previous Lesson o ASP.NET WebForms applications Abstract away HTTP (similar to desktop app development)
Chapter 1 Getting Started with ASP.NET Objectives Why ASP? To get familiar with our IDE (Integrated Development Environment ), Visual Studio. Understand.
Introduction ITEC 420.
DevOps with ASP.NET Core and Entity Framework Core
Introducing the Microsoft® .NET Framework
Haritha Dasari Josue Balandrano Coronel -
MVC in ASP.NET Core: The new kid on the block
Web Development Using ASP .NET
ASP.NET Roadmap Mike Ormond Developer & Platform Group Microsoft Ltd
ASP.NET Module Subtitle.
Introduction to ASP.NET Parts 1 & 2
Mark Quirk Head of Technology Developer & Platform Group
The Future is Now with ASP.NET Core 3.0
#01# ASP.NET Core Overview Design by: TEDU Trainer: Bach Ngoc Toan
Blazor A new framework for browser-based .NET apps Ryan Nowak
MS Confidential : SharePoint 2010 Developer Workshop (Beta1)
Presentation transcript:

Ori Calvo, 2010 Hi-Tech College

“If people want to have maximum reach across *all* devices then HTML will provide the broadest reach” Scott Guthrie, Corporate Vice President, MicrosoftCorporate Vice President

Objectives ASP.NET MVC Basics What’s new in ASP.NET MVC 3 Summary

Prerequisites ASP.NET Developer Good understanding of HTML and HTTP Good understanding of C# 3.0 Language No ASP.NET MVC Experience is required

Quick Demo Create new ASP.NET MVC Project Create new controller Create new View

Classical ASP.NET Huge shift at that time Object oriented approach Compiled web pages Stateful UI Event Driven Drag and Drop Designer Windows Forms Developing Experience Is here to stay !!!

What’s wrong with it? Is “Windows Forms” approach suited? Limited control over HTML Encourages mixing of presentation and logic Hard to test ViewState Complex page life cycle Hard to integrate with other libraries

ASP.NET MVC Separation of concerns Tight control over HTML Designed to be testable Extensible routing system Better integration with 3 rd party libraries Open source Built on top of ASP.NET platform Language innovations

Software Requirements.NET Framework 4.0 Visual Studio 2010 Visual Web Developer 2010 Can be installed into the bin directory In case the Web Host does not support it directly Installation can be automated by Web Platform Installer Additional components can be installed using NuGet

Web Platform Installer

MVC Ingredients Routing System Controller Action Filter View Model Model State View Bag

Demo – Real life controller GroupController Index View Click a group Back to parent

Demo – Extending Views Partial View - Menu Layouts - Header and footer Sections – Add “scripts” section

Demo – Submitting Data Create new group Method selector Automatic model binding Validation DataAnnotations Edit a group TryUpdateModel jQuery to set focus

Demo – Controlling Access Authorize filter FormsAuthentication LoginDetails as ViewModel

Demo – Routing System Simplifying URLs Implement “CMS like” URLs

What’s new? ASP.NET MVC 3 NuGet 1.1 IIS Express 7.5 SQL Server Compact Edition 4.0 Web Deploy and Web Farm Framework 2.0 Orchard 1.0 Web Matrix 1.0 Entity Framework Code First (CTP5)

Razor Just another View Engine Better integration of C# and HTML Is focused around character No need to set the end of code Is testable Is extendible Follows the same compilation model as ASPX Can be compiled at design time

Razor syntax to move between code and HTML to specify long expression to run arbitrary code which doesn’t writes into the response stream inside code region to move back to HTML Can also use and for comments to add some functions to specify different base class

Demo - Razor Resolve ambiguities Create a unit test Write inline template

NuGet Consider following scenario You want to install a library named X X has a dependency on Y You also want to install library named Z Z has a dependency on Y Need to think about: Where can you get latest of all libraries? What are the dependencies of each library? Is it ok to use the latest release for Y? If not, what happens if Z depends on a different version of Y than X?

NuGet A library package manager Deals with packages rather than assemblies An extension to Visual Studio 2010 Not just for ASP.NET MVC projects Packages come from a well known repository Automatically handling of version conflicts and updates Once package is imported NuGet stays out of the way No integration with TFS

NuGet Algorithm Never installs assemblies at machine level Uses bin deploy Prefers unification over “side by side” Always picks the lowest version of a dependency that fits in the range Always move up to the highest build/revision Can use the Add-BindingRedirect power shell command

Demo - NuGet Install T4MVC Install NHibernate Handle conflicts Get a list of updates available Create a local repository Give a look at

IIS Express Quick installation (less than 10MB) Better support for IIS feature set SSL Integrated Mode URL Re-Writing Same configuration schema Does not require administrator privileges Doesn’t run as a service Can co-exist with full IIS7.x and Cassini Works on Windows XP SP3 and later Supports multiple users on the same machine Supports WCF but only over HTTP Integrated into Visual Studio 2010 SP1 beta

Demo - IIS Express Changing VS to work with IIS Express Change VS default Execute under Integrated Mode Change application pool using AppCmd.exe

Demo – EF Code First Use DbContext Change the database name Use SQL CE Dispose the context Use validation

What’s new in ASP.NET MVC 3? Unobtrusive JavaScript Posting JSON objects Class level model validation Partial page output caching Better Dependency Injection ViewBag Global Filters Sessionless Controller

ASP.NET MVC vs. ASP.NET Web Forms Both based on ASP.NET infrastructure Same objectives, different ways Both server centric How sophisticated the UI need to be? Are you planning for automation coverage? What is your team developing background? Can mix both in the same project You can use ASP.NET Server Controls inside views (don’t tell anybody …)

Summary A different way to develop web applications Razor Syntax – Clear & easier to maintain NuGet – Integrate 3 rd party libraries IIS Express – IIS for the developer Better Validation – Based on jQuery and Unobtrusive JavaScript principles Many small enhancements

Questions ? TryUpdateModel

Read more Course 4282 at Hi-Tech College (Next Week!!!)

Thank You !!!