This repository has been archived by the owner. It is now read-only.
Exception thrown when attempting to use model members in sections in a Razor Page #6294
Labels
Projects
Milestone


DamianEdwards commentedMay 18, 2017
•
edited
Repro
Index.cshtml.csmodel class filepublic string Message { get; set; } = "Hello";Index.cshtmlpage fileModel.Messageinside the "Scripts" section:@section Scripts { <h1>@Model.Message</h1> }Expected Result
The message is rendered in the HTML OK.
Actual Result
@rynowak @NTaylorMullen
The text was updated successfully, but these errors were encountered: