How to get FULL URL in ASP.NET Core Razor Pages?
I want to get the full URL, not just the Path, not just the Query, and not RouteValues. The entire URL as it has come in the raw form. How can I do that in ASP.NET Core Razor Pages?
I want to get the full URL, not just the Path, not just the Query, and not RouteValues. The entire URL as it has come in the raw form. How can I do that in ASP.NET Core Razor Pages?
Looking to try out Dapper as a possible replacement to EFCore. I have a simple Model public class CDItemFormModel { public int Id { get; set; } public string ItemForm { get; set; } public bool Active { get; set;…
I am iterating through a LARGE list of objects all of which will open the same modal window that will be loaded with dynamic information. To make this work, I create a counter called MenuCounter that I know increments just…
I'm trying to do a get request, here's my razor page class: public class IndexModel : PageModel { public IEnumerable<ApiAnime> ApiData { get; set; } public async Task<IActionResult> OnGet() { var request = new HttpRequestMessage(HttpMethod.Get, "https://api.aniapi.com/v1/anime"); var client = _clientFactory.CreateClient();…
I have a asp.net core mvc project. In my layout file, I want to display the name of the currently logged in user, such that the username is displayed in the header. For this, I want to be able to…
I 'm working with an ASP Razor project (.Net5). Thee is a page with the user list and a filter. The goal is to present the user that match the filtering criteria. The code below is able to do the…
I am using jQuery.Lazy() Plugin with ASP.NET Core Razor Pages and Bootstrap 4 app to retrieve 2 lists from the DB via AJAX (see photo). Everything is working great except for one thing: on a mobile device, I can't figure…
Coffee shop is created with ASP.NET Core Razor page. Coffee Model created and all available coffee is stored in a db (ef core). We have two pages. First page shows a table of all coffee (id, title, cost, ...)info. Each…
I am working on a registration system with ASP.NET Core MVC. I have a Select field that prompts the user to select which company he works in (e.g. Microsoft, IBM) and based on his choice I want to validate the…
I'm trying to serialise my form, but for some reason I can't make it work. The serialisation of the form is working. But the issue is, that I'll need to add a list afterwards, since it's not a part of…