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

Reject a jwt token if the user is disabled in the database

I use jwt token in my asp.net core app and I have two issues. First, I wan to check each time the token is validated and see if the user is still active in database. I know there is OnMessageReceived...

View Article


Replace old text for PartialView - View only when the word appears.

It is so that if I write something specific in my text on the page then I should have shown a form on the page when writing the simple word that I want it to be overwritten with.The problem is right...

View Article


User Authentication using multiple identities not just single default...

Hi,I am currently working on a DogCarePlatform that has both Owners as users and Dogsitters as users. I've reached a point where I need both of those entities to be seperate Identities and act like...

View Article

IndexOutOfRangeException: Worksheet position out of range. using EpPlus

[HttpPost] public async Task <IActionResult> Import(IFormFile file) { if(file ==null||file.Length==0) return Content("File Not Selected"); string fileExtension=Path.GetExtension(file.FileName);...

View Article

MQTT Authentification in Asp .Net Core 3.1

Hello can anyone advise how to implement Authentification(username and password FROM DB level) in MQTT platform, currently have few ideas in mind:1. Authenticate on every message received from client,...

View Article


How can I set the language of Localizer by code in blazor server-side?

I need to embed a Blazor server-side component to an existing asp.net core project.I followed the tutorial of this...

View Article

User Roles and Authentication.

Currently spending my time at home building an Application in MVC ASP.Net Core for a college assignment. I've managed to get both a login and registration form working and I'm now looking at User Roles...

View Article

How to assign a list to object member?

List<DateTime> lstdt is loaded with items. I want to assignStudent.ClassAttendance=lstdt; Or Can we make use of code like- List<DateTime>(Enumerable.Range(1, 5).Select(x => DateTime.Now));

View Article


Getting a Null Result When i try to create user, using the asp.net core...

So I am using asp.net core user (Authentication and Authorization system). I have seeded my tables newly default tables need for user and roles management have been created but they are all empty.So I...

View Article


Need to change model/database table in .Net Blazor-Server-Side app

I am building a CRUD app from a Blazor serverside project that also has EntityFramework Power Tools integrated. The initial framework I am using is from an example that is already configured with...

View Article

ASP.NET 3.0 : ArgumentException: Options.ClientId must be provided (Parameter...

I have ASP.NET 3.0 Application, Below is my code When I hit breakpoint I can see my client Id is not null still it results into errorvar Test = new OpenIdConnectOptions(); Test.Authority = "XXXXXX"...

View Article

Asp.Net Core ECDH

Hi,I would like to know if there is a example where ASP.NET core exchange ECDH key with a dot.net Core console app ?  Thank you

View Article

a quick reflections question

i have thispublic class ClassA { public IList<ClassB> PropertyB { get; set; } = new List<ClassB>(); } public class ClassB { } var a = new ClassA().PropertyB.GetType(); var p = new...

View Article


FileStream.CopyToAsync copies the file empty with size of 0

HiI'm trying to upload files to some destination folder in wwwroot source folder.Now when I browse some file and save a new record in the view, the file is copied but empty with 0 size!I've tried to...

View Article

linq with groupby giving syntax error

var stat = (from s in _context.Subjects join a in _context.Attendances on s.Code equals a.Code where ((((a.Atten.Count(x => x == '1') * 100) / a.Atten.Length) > scutoff) &&...

View Article


Can i get a list of all properties but only in the direvide class?

HiI havepublic class MyClassA { public string ThisProperty {get;set;} public IList<string> GetAllPropertiesFromDerivedClass() { //needs to return One,Two and Three //This will be different if the...

View Article

Ho to migrate an existing asp.net dynamic data website/project to mvc core 3

It is possible to migrate an existing asp.net dynamic data website/project to mvc core 3 under vs2019?The old dynamic data app (vs2010 EF4 ) is working just fine but it needs adjustments and we have...

View Article


ASP.NET 3.1 : Dynamic Updating OpenID Connect Options

I am having ASP.NEt 3.1 Application adn I am trying to update my OpenIDConnection options Below is the code I am trying to use I am getting error as Client ID Parameter must be providedpublic class...

View Article

Is Blazor life for production

Been seeing alot of questions on Blazor lately. Is it life for production. Can blazor compete with React and Angular when it comes to speed in the Virtual dom.Please are there sample website built on...

View Article

Blazor Client Side - how intercept User Activity

Hi,I want to check if a logged-In user is doing some activity.This in client side without check and consider the http requests to the server.Some tips ?Thanks in advance

View Article
Browsing all 9386 articles
Browse latest View live


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