Learn ASP.NET Core 3, Second Edition by Kenneth Yamikani Fukizi

Learn ASP.NET Core 3, Second Edition by Kenneth Yamikani Fukizi

Author:Kenneth Yamikani Fukizi
Language: eng
Format: mobi, epub
Tags: COM000000 - COMPUTERS / General, COM082000 - COMPUTERS / Bioinformatics, COM006000 - COMPUTERS / Buyer
Publisher: Packt
Published: 2019-12-27T09:27:59+00:00


Open the created file and clear its content and associate the Leaderboard view with the User Model by adding the following instruction to the top of the page: @model IEnumerable<UserModel>.

It is good practice to set its title variable so that it's displayed in the SEO tags: @{ViewData["Title"] = "Index";}.

Add new two sections, Desktop and Mobile, by using the @section meta tag. Then, add the last updated time by using the @() meta tag:

<div class="row">

<div class="col-lg-12">

@section Desktop {<h2>

@Localizer["DesktopTitle"] (

Last updated @(System.DateTime.Now))

</h2>}

@section Mobile {<h2>

@Localizer["MobileTitle"] (

Last updated @(System.DateTime.Now))

</h2>}

</div>

</div>

Add the English and French resource files for the Leaderboard view and define localizations for the DesktopTitle and MobileTitle.

Right-click on the Controllers folder, select Add | Controller, select MVC Controller - Empty, and click on the Add button. Name it LeaderboardController:



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.