1 / 16

Introduction to MVC 4 01. Introduction

Introduction to MVC 4 01. Introduction. NTPCUG Tom Perkins, Ph.D. Class Objectives. Introduce you to the basics of the ASP.NET MVC 4 development platform. Develop a web site using MVC 4 Deploy the website as an Azure site in the cloud

manjit
Download Presentation

Introduction to MVC 4 01. Introduction

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. Introduction to MVC 401. Introduction NTPCUG Tom Perkins, Ph.D.

  2. Class Objectives • Introduce you to the basics of the ASP.NET MVC 4 development platform. • Develop a web site using MVC 4 • Deploy the website as an Azure site in the cloud • Help you to develop your development skills by using MVC 4.

  3. PREREQUISITES • Visual Studio 2012 • Visual Studio Express 2012 • Available as a free download from http://www.microsoft.com/visualstudio/eng/products/visual-studio-express-products

  4. Course Plan • Follow the Microsoft introductory tutorial • Available at http://www.asp.net/mvc/tutorials/mvc-4/getting-started-with-aspnet-mvc4/intro-to-aspnet-mvc-4 • Presentations will follow the tutorial, step-by-step • Each student will develop a web site • Each student will deploy the website to the Internet via the Azure cloud

  5. Class Project Website • An application to list movies • Movie information stored in a database • Features: • Create a movie information entity • Edit • Search database • List movies

  6. Page to list movies …

  7. Add, edit, delete and validate data …

  8. Starting the project … • Start Visual Studio 2012 or Visual Studio Express 2012 • Select New Project from the Start Page • Alternative – use Menu • Select File  New Project

  9. Start Visual Studio …

  10. Create an ASP.NET MVC 4 Web Application Select ASP.NET MVC 4 Web application Name: MvcMovie Location: <your loc> Solution: MvcMovie Hit: OK

  11. Set up the MvcMovie Project … Select: Internet Application Leave View Engine as “Razor” Hit: OK

  12. Your MvcMovie (Hello, World!) project has been created …

  13. Run the preliminary project … Select: DEBUG | Start Debugging Note: F5 keyboard shortcut to start application

  14. When “F5” is pressed … • VS launches a browser • Opens the application’s home page • Application bar: localhost • Note random port number

  15. Your baseline MVCMovie app

  16. Default template gives you: • Home, Contact, About pages • Support for Login and Register pages • Links to Facebook and Twitter • Explore the app, then close your browser • Next: 02. Adding a controller

More Related