Quantcast
Channel: ASP.NET Core
Browsing all 9386 articles
Browse latest View live

What is the best topic to implement multi-languages in asp.net core 2.1?

HiI'm totally new to implement internationalization in asp.net core 2.1 MVC project. I searched in Internet and found some topics to implement it step-by-step.I want my website to support English and...

View Article


Core 3.1 First query to db takes a long time

Hi,I have seen this issue all over the web and I have tried many of the suggested scenarios without a lot of success. Sure, I can shave a little bit off the DB query, but not a significant amount of...

View Article


ASPNETCORE on Windows Server 2016 core.

Hi everyone.  How do I install aspnetcore support on Windows Server 2016 CORE? I have the following web.config from an...

View Article

Hide html tag when formwarding the mail

Hello all , I am sending mail after execution of particular functionality. mail is also getting sent successfully. what I want is actually I have update password link in mail body which I have make as...

View Article

Wrap API responses in a standarized format

Good evening, I'm not really up to date with ASP.NET Core 3.x and I would like to get an advice.I'm trying to standarize resource API output to look like this: {"statusCode": 200,"statusMessage":...

View Article


how does the oidc server know what token type it is

if id_token access_token and refresh_token can all be JWT's how does the sever determine which one is being used?I am thinking its a scope but i can't seeanything in the docs.

View Article

ASPNET Core 3.x - The most popular library for performing complex filtering,...

I have a very complex model that has over 31 fields.I'm builiding an app where client should be able to filter the database records by each and every of these 31 fields, then sort and paginate the...

View Article

asp.net and aspnet core session sharing

hi, please suggest a better resource for asp.net and aspnetsession sharing among each other . best practices when using two applications full dotnet and aspnet core.session sharnig among them 

View Article


get current page title in .net core

hii want get current page title in  controller ? how to access and do it ? 

View Article


Route to a specific action explicitly from middleware

I'm still trying to migrate my transparent login router to ASP.NET Core 3 with the new endpoint routing. My current approach is to insert a middleware before the routing happens. When this middleware...

View Article

Proper way to Layer my Queueing Infrastructure.

Dear All,I have 2 micro services. One of the Microservice (Application A) has an Api endpoint that recieve messages from a partner Payment service. So my design is that once I recieve message from a...

View Article

How To Clean Nginx Cache?

Hello there,I uploaded the new version of my ASP.NET Core website that I published with Nginx via FTP. But still the old version appears on the air. I updated the files, but the files were not updated...

View Article

Creating an Endpoint that can read any json. A generic endpoint API

So I have a requirement to have one endpoint that can read json payload that can hit it from different system. We have several partners that would be posting data to our system.  So we want one...

View Article


Image may be NSFW.
Clik here to view.

How To Connect MySQL With ASP.NET Core

I need connect .NET CORE Application with MySQL and read data from MySQL, using .NET Core MySQL connectorthis is the tutorialI followed step by step the instructions of the tutorial, but on debug in VS...

View Article

How to use Reflection in linq queries ?

HiI'm looking for a way to use reflection in my linq queries to increase code reusability. for example, i want to change this method :private Orders GetObjectGraph(MyDbContext dbContext, int orderID) {...

View Article


Core DI injection with user id

I would like to inject a user ID to all my services and utilities.Here is my current setup: public class StructureUtilities : IStructureUtilities { /// <summary> /// The structure service ///...

View Article

Remoing tag from string in c#

Hello All,I have string with multiple html tags like div,p.I want to remove the p tag from string how can I do that from c# code?Please suggest solutionThanks

View Article


Json configuration with polymorphic array

Is it possible to have a polymorphic array setup by json configuration?E.g. the following code (all in one file only for the demo of course):using Microsoft.Extensions.DependencyInjection; using...

View Article

c# data annotations validade Model, out of context of form binding (upload file)

I’m using asp.net core 3.1 razor pages and wanna validade a model on a upload process using data annotation.My model is:public class UserUpload{[Key]public string UserId { get; set;...

View Article

CommandLineConfigurationProvider

I am using generic host for a console app (not a daemon style service, just a shortlived app) by .AddHostedService() (I guess I can use a transient or singleton, but I don't know how to instantiate...

View Article
Browsing all 9386 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>