Top "Razor-pages" questions

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

ASP.NET Core 2.1 Identity: How to remove the Default UI razor pages?

Expanding the answer in this question: Change routing in ASP.NET Core Identity UI? Javier recommends one of the following …

asp.net asp.net-identity razor-pages asp.net-core-2.1
Calling Action in Razor Pages

as a newbie to Razor Pages I have a question regarding calling methods from Razor Page. I have a method …

c# razor asp.net-core .net-core razor-pages
Unable to resolve service for type 'Microsoft.Extensions.Logging.ILogger`1[WebApplication1.Startup]'

I created an ASP.NET Core 3.0 Web Application with the default template in Visual Studio 2019 Preview 2.2 and tried to inject …

c# asp.net-core razor-pages visual-studio-2019 asp.net-core-3.0
.NET Core - 404 error on server only

I have a very simple .NET Core test application that runs on my development machine but causes a 404 when run …

c# .net-core iis-10 razor-pages
How to add jQuery UI to Asp.Net Core VS2017?

I have installed jQuery UI using Bower in VS2017. When I look in Solution Explorer I can see that the …

jquery asp.net jquery-ui bower razor-pages
Can Razor Class Library pack static files (js, css etc) too?

Maybe duplicate of this already, but since that post does not have any answer, I am posting this question. The …

c# asp.net-mvc asp.net-core reusability razor-pages
asp.net core 2 razor pages route with id

There are two page one is Edit page and the other is Main Detail page which is combined data of …

c# asp.net-core-2.0 razor-pages
Download file to browser using .NET Core Razor Pages

Using ASP.NET Razor Pages, I am trying download a file to the browser. From the Page(html), using a …

c# asp.net razor-pages
Razor Pages, form page handler not working with GET method

I have a small ASP.NET Core Razor Pages project. I'm making a simple list display page with a basic …

c# asp.net-core razor razor-pages
400 Bad Request when POST-ing to Razor Page

My page has... @page "{candidateId:int}" ... and @Html.AntiForgeryToken() Model has... public void OnGet(int candidateId) { } public void OnPost(int …

asp.net-mvc razor razor-pages