1 / 21

ASP.NET MVC 3

ASP.NET MVC 3. Jonathan Canfield Mavin Lisa Giss Professor Kenytt D. Avery. History of ASP.NET. Active Server Pages (ASP) released in 1998 Replaced by ASP.NET in 2002 Addressed separation of presentation and content ASP.NET MVC framework released in 2009 Integrated with ASP.NET

ova
Download Presentation

ASP.NET MVC 3

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ASP.NET MVC 3 Jonathan Canfield Mavin Lisa Giss Professor Kenytt D. Avery

  2. History of ASP.NET • Active Server Pages (ASP) released in 1998 • Replaced by ASP.NET in 2002 • Addressed separation of presentation and content • ASP.NET MVC framework released in 2009 • Integrated with ASP.NET • Framework allowing Model – View – Controller based development

  3. What is ASP.NET MVC • MVC stands for Model-View-Controller which is a framework that is a lightweight, highly testable framework that is integrated with existing ASP.NET features. • MVC separates an application into three main components for ASP.NET • Model • View • Controller • This allows software developers to build web apps as a composition of three roles.

  4. Advantages of MVC • Makes it easier to manage complexity by dividing app into three roles • Does not use view state or server-based forms. This gives the developer more control • Provides better test-driven development • Works well for Web apps that are being developed by large teams.

  5. Some Key Features • Separation of input, business and UI logic. • Components are designed so they can be easily replaced or customized for a specific need. • For example you could plug in your own view engine. • Allows you to build web apps comprehensible and searchable URLs. • Supports existing ASP.NET features.

  6. Key features continued • HTML 5 enabled project templates • Expressive views including Razor View Engine • Dependency Injection and Global Action Filters • JavaScript support

  7. Building an app • One nice aspect (for some) is you can use Visual Studio for building apps. • The Primary language used for ASP.NET MVC is C#

  8. Controller example

  9. Views example

  10. Model Example

  11. Building a sample app

  12. The default template created for a ASP.NET MVC project.

  13. Adding a controller to the project

  14. Adding a method

  15. Adding a view

  16. Reasons to Learn ASP.NET MVC • To unit test • To gain control and extensibility • To learn something new • Google Developer Kevin Pang

  17. References http://www.asp.net/mvc/overview/getting-started http://msdn.microsoft.com/en-us/gg618477

More Related