Top "Razor-pages" questions

Apply to questions related to the Razor Pages Framework, which is a feature of ASP.

How to change starting page, using Razor Pages in .NET Core 2?

I wanted to set my starting page to /Members/Index. When I was using MVC, I configured it as following: …

asp.net-mvc asp.net-core-2.0 razor-pages
How can I bind complex Lists in ASP.NET Core RazorPages

I'm new to ASP.NET Core Razor Pages. I try to retrieve a List<> from a Page via …

c# asp.net-core asp.net-core-mvc razor-pages
How to return a PartialView from Core 2 RazorPage ViewModel Handler

In Asp.Net MVC, you can easily return a partial view by doing the following: return PartialView("ModelName", Model); How …

asp.net-core-2.0 razor-pages
How to make Login page as a default route in ASP .NET Core 2.1?

I am beginner in ASP .NET Core 2.1 and working on project which is using ASP .NET Core 2.1 with individual authentication. …

c# asp.net-identity asp.net-mvc-routing razor-pages asp.net-core-2.1
There are no scaffolders supported for this item Visual Studio 2019

I'm using Visual Studio 2019 version 16.0.4, and I tried to create a view or a partial one on asp.net core 2.1 (…

c# asp.net-core-2.0 razor-pages scaffolding visual-studio-2019
ASP.net MVC core RedirectToPage error - specify root relative path error

I want to redirect to a razor page from a normal controller action like this: return RedirectToPage("Edit", new { id = …

c# asp.net-core-mvc razor-pages
Inserting html tags between C# block code in cshtml file

I want to use html tags between C# block code, I've tried it but I got errors. How can I …

razor asp.net-core asp.net-core-mvc asp.net-core-2.0 razor-pages
Is there an equivalent to Response.Redirect("~/Controller/") in Asp.Net Core 2?

Is there an equivalent to Response.Redirect("~/Controller/") in Asp.Net Core 2 ? I don't want to use ViewComponent. Instead of, …

asp.net asp.net-core asp.net-core-2.0 razor-pages
Setting a startup page in Blazor

The startup page in my Blazor application is Index.cshtml. I'd like to change the startup page to the homepage, …

routing razor-pages blazor