1 / 17

Getting Started with ASP.NET MVC

This informative guide by Brij Bhushan Mishra provides an in-depth look at ASP.NET MVC, covering its core concepts, benefits, and comparison to Web Forms. It delves into the MVC architecture, controller responsibilities, view rendering, and HTML helper methods. The text simplifies the ASP.NET MVC request flow, routing, and response mechanisms, making it ideal for beginners and experienced developers alike.

golson
Download Presentation

Getting Started with ASP.NET MVC

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. Getting Started with ASP.NET MVC Brij Bhushan Mishra

  2. Who Am I? • Brij Bhushan Mishra • Microsoft ASP.NET/IIS MVP • Former Code Project MVP • Blogger/Author/Speaker • http://brijbhushan.net • @brij_bhushan • brij.mishra@outlook.com

  3. Whenever Microsoft introduces new technology, Do you welcome like it?

  4. Agenda

  5. Overview Web Pages MVC Web Forms ASP.NET Framework

  6. ASP.NET MVC Controller Request (Controller\Action) Model View

  7. ASP.NET MVC Controller Route Handler http://localhost/Event/List Model View

  8. Why ASP.NET MVC • More control over HTML and JavaScript • Clean separation of Concerns • No ViewState or Post Back events • Test Driven Development • Cleaner and SEO friendly URLs • ASP.NET Providers (Session, Caching, Member Ship) works • Easy integration with Client Side libraries • Not a replacement of Web Forms

  9. ASP.NET MVC • Visual Studio 2012 • Visual Studio 2010 • Visual Studio 2008 SP1 + Download and Install MVC Package

  10. ASP.NET MVC Request Flow View Request View Engine Perform Routing Response Execute Controller/Action Create HTTP Handler Create Controller

  11. Benefits….. • Post back • ViewState • Tricky page life cycle Interview Questions No Design Time Support

  12. Model • Core of your Application • Contains business logic , data models( View Models), Validation… etc • Any data access technology can be used like Entity Framework, ADO.NET or any other

  13. Controller • Controls the execution flow • Executes logic, Load the data and chooses the view • Can call other controller, redirect to other URLs

  14. View • Responsible for displaying UI. Contains information for presentation, formatting, searching, sorting.. • Knows the models and display the data accordingly (No logic here) • HTML helpers are used for generating the mark up • Can be used with loosely typed and strongly typed data

  15. HTML Helpers • A static methods that returns the html string • Can have our own custom HTML helper methods • Few are like • Html.ActionLink() • Html.BeginForm() • Html.CheckBox() • Html.DropDownList() • Html.EndForm() • Html.Hidden() • Html.ListBox() • Html.Password() • Html.RadioButton() • Html.TextBox()

  16. One more..

  17. Thank you

More Related