Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

In a Razor page returning View from OnGet results in a compile error. #5802

Closed
@NTaylorMullen

Description

@NTaylorMullen

Having:

@page

@functions {
    public IActionResult OnGet()
    {
        Message = "From OnGet";

        return View();
    }
    public string Message { get; set; } = "Default";
}
<p>The message: @Message</p>

Results in a compile error:
image

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions