Conhecendo o
ASP.NET MVC e as
novidades da versão 3
José LinoNeto
@joselinoneto
contato@joselino.net
http://joselino.net
A...
• Como funciona o ASP.NET MVC?
• E o que seria MVC?
• É o fim dos WebForms?
• ASP.NET MVC 2 Stable
• ASP.NET MVC 3 Release...
Caching Modules
HandlersIntrinsics
Pages Controls
Globalization
Profile
Master Pages
MembershipRoles
Etc.
ASP.NET
Um frame...
Master Page
Control
Control
Não há reais regras de
responsabilidades
Apresentção
Lógica da apresentação
Regras negócio
Ace...
Abstração de controles pode ser negativo.
Lógica UI
ASP.NET
Dynamic Data
ASP.NET
WebForms
ASP.NET
MVC
Apresentação
Execução
ASP.NET
Core
Controller
(Input)
Model
(Logic)
View
(Presentation)
Separação dos conceitos
Request
View
Controller
Response
Controller
Recebe Entradas dos
Usuários
(HTTP requests)
View
Representação
Visual dos
Mod...
Não se perca em…
/Produtos.aspx?ProdutoID=123
Quando facilmente pode ter…
/Produto/Detalhes/123
Ou então o que melhor fize...
ASP.NET MVC 2
só exemplos...
;-)
Minha apresentação...
 Download ASP.NET MVC 3 Preview 1
 Binaries: http://bit.ly/ahs64M
 Source: http://aspnet.codeplex.com/releases/view/500...
Apoio
Agradecimentos
Patrocinadores
Realização
© 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be...
Asp.net mvc 3 - eco 2010
Asp.net mvc 3 - eco 2010
Upcoming SlideShare
Loading in...5
×

Asp.net mvc 3 - eco 2010

1,426

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
1,426
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
9
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide
  • Estimated Time: 1 minute

    The main objectives of this session are to explain what ASP.NET MVC is and how it sits in the overall ASP.NET ecosystem. We’ll take a look at its main value propositions and see what style of development it enables.

    The key takeaways are to determine whether or not ASP.NET MVC is the right choice for you as a developer, and to figure out whether or not it can ease some pain you’re currently experiencing as a web developer on the .NET stack.
  • Estimated Time: 2 minutes

    The level of abstraction that WebForms provides has a lot of benefits to it, but it doesn’t provide any framework-level guidance in terms of what should do what and when. Between your pages, master pages, user controls, server controls, and custom controls, you can end up with a mixture of HTML, data access code, and business logic.

    There are certainly methodologies/practices that can be employed with WebForms that can remedy that, but it becomes an implementation task of the developer, since the framework doesn’t provide any of that separation/guidance.

  • Estimated Time: 2 minutes

    The control abstractions that WebForms provides are very powerful in that they neatly contain all of the UI and business logic needed so you can just place them within a page and go. The adverse side of that is that it can end up hiding complexity that you’d rather have control over. A common problem is viewstate [Advance Animation]. It isn’t viewstate’s fault that things like this can happen, but it can be very easy to consume a control that could end up hurting the performance of your application.

    In addition, many times the markup rendered by server controls aren’t always ideal and there is little control over that without having to redo its rendering completely.
  • Estimated Time: 1 minute

    WebForms has been the only option on the ASP.NET stack and provides a mature product that has proven successful for lots of developers. But it does have some weaknesses.
  • Estimated Time: 2 minutes

    MVC is a design pattern that stands for Model-View-Controller. What is strives to do is separate the concerns of an application’s presentation layer by assigning specific roles to the three different components.

    The Controller is responsible for handling all user input. Once input has been received, the Controller will perform any operations/actions it needs to, which might include interacting with the Model.

    The Model represents the core concern/logic of the application. Once the Controller retrieves some model data and performs any work with the model/etc it needs to it constructs a presentation model that describes the model in terms the View can understand.

    The View is the visual representation of the model. It presents the model data to the actual user in a way that is meaningful. In a web application, this would typically be HTML.

    With these three pieces in place, your presentation layer becomes cleanly separated in such a way that each component can be developed/tested independently.
  • © 2003 Microsoft Corporation. All rights reserved.
    This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.
  • © 2003 Microsoft Corporation. All rights reserved.
    This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.
  • Asp.net mvc 3 - eco 2010

    1. 1. Conhecendo o ASP.NET MVC e as novidades da versão 3 José LinoNeto @joselinoneto contato@joselino.net http://joselino.net Alliston Carlos @allistoncarlos alliston@live.com http://alliston.wordpress.com
    2. 2. • Como funciona o ASP.NET MVC? • E o que seria MVC? • É o fim dos WebForms? • ASP.NET MVC 2 Stable • ASP.NET MVC 3 Release Candidate
    3. 3. Caching Modules HandlersIntrinsics Pages Controls Globalization Profile Master Pages MembershipRoles Etc. ASP.NET Um framework web que engloba quase tudo.
    4. 4. Master Page Control Control Não há reais regras de responsabilidades Apresentção Lógica da apresentação Regras negócio Acesso a Dados Quem faz o que? Como e quando? Control ControlPage Control Control Control Control
    5. 5. Abstração de controles pode ser negativo.
    6. 6. Lógica UI
    7. 7. ASP.NET Dynamic Data ASP.NET WebForms ASP.NET MVC Apresentação Execução ASP.NET Core
    8. 8. Controller (Input) Model (Logic) View (Presentation) Separação dos conceitos
    9. 9. Request View Controller Response Controller Recebe Entradas dos Usuários (HTTP requests) View Representação Visual dos Modelos
    10. 10. Não se perca em… /Produtos.aspx?ProdutoID=123 Quando facilmente pode ter… /Produto/Detalhes/123 Ou então o que melhor fizer sentido durante uma migração
    11. 11. ASP.NET MVC 2
    12. 12. só exemplos... ;-) Minha apresentação...
    13. 13.  Download ASP.NET MVC 3 Preview 1  Binaries: http://bit.ly/ahs64M  Source: http://aspnet.codeplex.com/releases/view/50092  Blogs  http://weblogs.asp.net/scottgu/archive/2010/07/27/introducing- asp-net-mvc-3-preview-1.aspx  http://bradwilson.typepad.com/blog/2010/07/service-location- pt1-introduction.html  Podcasts / Videos  Scott Hanselman: http://bit.ly/9bJ0JP  Hanselminutes with Phil Haack: http://bit.ly/dxRTxG  www.asp.net and http://forums.asp.net
    14. 14. Apoio Agradecimentos Patrocinadores Realização
    15. 15. © 2010 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION. www.devgoias.net José LinoNeto @joselinoneto contato@joselino.net http://joselino.net Alliston Carlos @allistoncarlos alliston@live.com http://alliston.wordpress.com
    1. A particular slide catching your eye?

      Clipping is a handy way to collect important slides you want to go back to later.

    ×