Answers for "cshtml page title"

C#
0

cshtml page title

// Create a _Layout.cshtml under your pages directory
// Make sure you have a head and title tags specified in there.

// In your page set the title like so:
@{
   ViewBag.Title = "My View's Title";
   Layout = "~/Views/Shared/_Layout.cshtml";
}
Posted by: Guest on January-18-2022

C# Answers by Framework

Browse Popular Code Answers by Language