Category "asp.net"

How to position the image at the side edges of the screen?

I want to place the image at the edges of the page so that it perfectly touches the left and right sides with the edges. that's what it looks like now: https://

Claims added from Profile service not included in asp.net core 6 Identity with Duende Identity Server

I have below config public static IEnumerable<IdentityResource> GetIdentityResources=> new List<IdentityResource> { new

how to send/create status code as response for Unauthorized requests in .Net Framework 4.0

I am using .NET framework 4.0 with WEB API 1.0. I am trying to send an HTTP 401 Unauthorized response for an unauthorized API request, but every time I receive

Load referenced data types from custom Identity UserManager

I have a custom IdentityUser called ApplicationUser: public class ApplicationUser : IdentityUser { public ICollection<Board> Boards { get; set; } } W

If not exist with Date SQL

i want to add the time, if there is free time as example im doing that with two textboxes where im entering the date Database 20.04.2020 - 20.05.2020 so there s

Blank page with no error after i scaffolded Identity

After i scaffolded identity when i run my project it gives me a blank page and the project doesn't have any errors, manually going to a page doesn't work either

Implementation of HttpClient request limiter and buffer

In our project, we have a few services that make requests to a 3rd party API, using a key. This API has a shared rate limit between all endpoints (meaning reque

Can't get Code from Azure Active Directory from Post because of redirect

I need assistance with a company website I'm working on that should be linked up with Azure Active Directory. I have read those Azure Active Directory Docs. Our

Why can't an interface in a tuple be used as the model in an ASP.NET Razor partial view?

I have an ASP.NET Razor Pages project with a partial view that uses a tuple type for its model. One of the tuple elements uses an interface as its type. When th

Setting the global state only once using Fluxor in Hosted Blazor WASM app

I have a .NET 5.0 Hosted Blazor WASM app that looks like this: I am using scaffolded Identity razor pages in server project for sign in and sign up etc. I want

Connect local SQL Server from WSL2 (Ubuntu) [duplicate]

I started to develop a .NET Core Web API application with SQL Server. I use the Windows Subsystem for Linux (I store the files in the Ubuntu s

Using RestSharp to aend files between to API's on Kubernetes

So I have to API's running on Kubernetes. One has a controller function as such: string filePath = "/blobs/data/runsession/" + folderName; if (!Directory.Exists

Filter List inside List Linq

I have list say list of customers and inside each list there is another list of orders Class Customer { int ID, string Name List<Order> orders } Class Or

I have problems connection to Soap with Authentication

i'm trying to connect my project to SoapUI with an authentication. I am connected to my WS but after reading lots of documents I can´t understand how to c

What is the best practice to handle long external process in ASP.NET page?

An example will be something like: User clicks a button on a webpage I created with ASP.NET. My app calls an API hosted on a third party server. The user sees

New controller does not respond to requests

I created a new project from the ASP.NET Core Web API template in Visual Studio, and attempted to add a new controller, but I get a 404 response with this messa

Can we pass 3 url to backend(asp.net core, 1 master, 2 slave) appsettins.json have 1 connectionstring yandex cloud? postgresSql master-slave

We have datacenter in 3 zone and 3 different url. Connect to database postgres is psql "hostname=url1,url2,url3 \port=......" Yandex understand what is master n

how do read and write 15G txt file with 50 million record in asp core 6?

I want to read a 50milion record from 15G txt file and write in to elastic search if (file.Length > 0) { string wwroot = _he.WebRootPath;

ASP.NET download csv file as zip?

I've been reading through: https://www.aspsnippets.com/Articles/Export-data-from-SQL-Server-to-CSV-file-in-ASPNet-using-C-and-VBNet.aspx Rather than only have t

Create an expression dynamically to sort Linq to Entities ascending/descending based on a dynamically provided property name

Here is what I am trying to do. I have done a few simple expressions, but this one is a little too much for me right now. public static Expression<Func&l