AspNetCore.Docs/aspnetcore/tutorials/first-mvc-app-xplat/adding-view.md

22 lines
628 B
Markdown
Raw Normal View History

2017-03-30 09:56:36 +08:00
---
2017-07-01 07:47:15 +08:00
title: Adding a view
2017-03-30 09:56:36 +08:00
author: rick-anderson
description: Adding a view to a simple ASP.NET Core MVC app
2018-01-29 23:21:31 +08:00
ms.author: riande
2017-03-30 09:56:36 +08:00
ms.date: 03/30/2017
uid: tutorials/first-mvc-app-xplat/adding-view
---
2018-04-05 07:51:35 +08:00
[!INCLUDE [adding-view](../../includes/mvc-intro/adding_view1.md)]
2017-03-30 09:56:36 +08:00
Add an `Index` view for the `HelloWorldController`.
* Add a new folder named *Views/HelloWorld*.
* Add a new file to the *Views/HelloWorld* folder name *Index.cshtml*.
2018-04-05 07:51:35 +08:00
[!INCLUDE [adding-view2](../../includes/mvc-intro/adding_view2.md)]
2017-03-30 09:56:36 +08:00
2018-04-05 07:51:35 +08:00
> [!div class="step-by-step"]
> [Previous - Add a controller](adding-controller.md)
> [Next - Add a model](adding-model.md)