Monday, 27 February 2012

Intro to ASP.NET MVC:

Let's make our first ASP.NET MVC Web Application using Visual Web Developer 2010 Express. We'll make a little Movie list application that will let us create and list movies.



What You'll BuildMovie List - Windows Internet Explorer (12)

And you'll have a Create Form so we can add movies to the list.
     Create a Movie - Windows Internet Explorer (2)

Skills You'll Learn

This tutorial will teach you the basics of building an ASP.NET MVC Web Application using Visual Studio. You'll learn:
  • How to create a new ASP.NET MVC Project
  • How to create a new Database with SQL Server
  • How to create ASP.NET MVC Controllers and Views
  • How to retrieve and display data
  • How to edit data and enable data validation
  • How to update the database schema

Start by running Visual Web Developer 2010 Express (I'll call it "VWD" from now on) and select New Project from the Start Screen.
Visual Web Developer is an IDE, or Integrated Developer Environment. Just like you use Microsoft Word to write documents, you'll use an IDE to create applications. There's a toolbar along the top showing various options available to you, as well as the menu you could also have used to Select File | New project.

New Project
On the right-hand side is the Solution Explorer showing all the files and folders in your application. The big window in the middle is where you edit your code and spend most of your time. Visual Studio used a default template for the ASP.NET MVC project you just created, so you have a working application right now without doing anything! This is a simple "Hello World! project, and it is a good place to start for our application.
Microsoft Visual Web Developer 2010 Express
Select the "play" button to the toolbar.
Start Debugging
It's a green arrow pointing to the right that will compile your program and start your application in a web browser.
Home Page

No comments:

Post a Comment