Skip to content

Commit

Permalink
Merge pull request #9492 from aspnet/master
Browse files Browse the repository at this point in the history
Merge to live 11-6 #2
  • Loading branch information
Rick-Anderson authored Nov 7, 2018
2 parents fc7eb42 + 346721a commit 3fc9862
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aspnetcore/includes/RP/page1.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ When `OnGet` returns `void` or `OnGetAsync` returns`Task`, no return method is u

[!code-csharp[](~/tutorials/razor-pages/razor-pages-start/sample/RazorPagesMovie21/Pages/Movies/Create.cshtml.cs?name=snippet)]

<a name="index"></a>
Examine the *Pages/Movies/Index.cshtml* Razor Page:

[!code-cshtml[](~/tutorials/razor-pages/razor-pages-start/snapshot_sample/RazorPagesMovie/Pages/Movies/Index.cshtml)]
Expand All @@ -51,7 +52,7 @@ The `DisplayNameFor` HTML Helper inspects the `Title` property referenced in the

[!code-cshtml[](~/tutorials/razor-pages/razor-pages-start/snapshot_sample/RazorPagesMovie/Pages/Movies/Index.cshtml?range=1-2&highlight=2)]

The `@model` directive specifies the type of the model passed to the Razor Page. In the preceding example, the `@model` line makes the `PageModel`-derived class available to the Razor Page. The model is used in the `@Html.DisplayNameFor` and `@Html.DisplayName` [HTML Helpers](/aspnet/mvc/overview/older-versions-1/views/creating-custom-html-helpers-cs#understanding-html-helpers) on the page.
The `@model` directive specifies the type of the model passed to the Razor Page. In the preceding example, the `@model` line makes the `PageModel`-derived class available to the Razor Page. The model is used in the `@Html.DisplayNameFor` and `@Html.DisplayFor` [HTML Helpers](/aspnet/mvc/overview/older-versions-1/views/creating-custom-html-helpers-cs#understanding-html-helpers) on the page.

<!-- why don't xref links work?
[HTML Helpers 2](xref:aspnet/mvc/overview/older-versions-1/views/creating-custom-html-helpers-cs)
Expand Down

0 comments on commit 3fc9862

Please sign in to comment.