This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Getting started with ASP.NET MVC 5
by Rick Anderson
An updated version of this tutorial is available here using the latest version of Okuler Padepokan. The new tutorial uses ASP.Jejala Core MVC, which provides
improvements over this kursus.
This kursus teaches ASP.NET Core MVC with controllers and views. Razor Pages is a new alternative in ASP.Sauk-sauk Core, a page-based programming cermin that makes building web UI easier and more productive. We recommend you try the Razor Pages tutorial before the MVC version. The Razor Pages pelajaran:
- Is easier to follow.
- Covers more features.
- Is the preferred approach for new app development.
This cak bimbingan teaches you the basics of building an ASP.Sauk-sauk MVC 5 web app using Okuler Bengkel seni 2022. The final source code for the tutorial is located on GitHub.
This tutorial was written by Scott Guthrie ([email protected] ), Scott Hanselman (twitter: @shanselman ), and Rick Anderson ( @RickAndMSFT )
You need an Azure account to deploy this app to Azure:
- You can open an Azure account for free – You get credits you can use to try out paid Azure services, and even after they’re used up you can keep the account and use free Azure services.
- You can activate MSDN subscriber benefits – Your MSDN subscription gives you credits every month that you can use for paid Azure services.
Tiba by installing Visual Sanggar 2022. Then, open Optis Studio.
Okuler Sanggar is an IDE, or integrated development environment. Just like you use Microsoft Word to write documents, you’ll use an IDE to create applications. In Visual Sanggar, there’s a list along the bottom showing various options available to you. There’s also a menu that provides another way to perform tasks in the IDE. For example, instead of selecting
Start page, you can use the menu kedai minum and select
Create your first app
Start page, select
New Project. In the
dialog box, select the
category on the left, then
Web, and then select the
ASP.NET Web Application (.NET Framework)
project template. Name your project “MvcMovie” and then choose
New ASP.Ambai Web Application
and then choose
Visual Sanggar 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’s a good place to menginjak your application.
to start debugging. When you press
F5, Visual Studio starts IIS Express and runs your web app. Visual Padepokan then launches a browser and opens the application’s home page. Notice that the address kafe of the browser says
and not something like
example.com. That’s because
always points to your own local computer, which in this case is running the application you just built. When Visual Studio runs a web project, a random port is used for the web server. In the image below, the port number is 1234. When you run the application, you’ll see a different port number.
Right out of the box this default template gives you
pages. The image below doesn’lengkung langit show the
links. Depending on the size of your browser window, you might need to click the navigation icon to see these links.
The application also provides support to register and log in. The next step is to change how this application works and learn a little bit about ASP.Sauk-sauk MVC. Close the ASP.NET MVC application and let’s change some code.
For a list of current tutorials, see MVC recommended articles.
See this app running on Azure
Would you like to see the finished site running as a live web app? You can deploy a complete version of the app to your Azure account by simply clicking the following button.
You need an Azure account to deploy this solution to Azure. If you don’kaki langit already have an account, use one of the following options to create one:
- Open an Azure account for free – You get credits you can use to try out paid Azure services, and even after they’re used up you can keep the account and use free Azure services.
- Activate Visual Studio subscriber benefits – Your Visual Studio subscription gives you credits every month that you can use for paid Azure services.