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 Build
What You'll Build_thumb.png?cdn_id=2010-09-09-001)
And you'll have a Create Form so we can add movies to the list.
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.
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.
Select the "play" button to the toolbar.
_3.png?cdn_id=2010-09-09-001)
It's a green arrow pointing to the right that will compile your program and start your application in a web browser.
No comments:
Post a Comment