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

How to implement Servicehost in asp.net core 3.1

How to implement Servicehost in asp.net core 3.1 i am migrating asp.net project to .net core 3.1 if Servicehost is not supported then what is solution

View Article


How to get Core 2.1 Cookies Consent Message to Display

I started learning Core 2.1, and made use of the partial view for Cookies Consent. Things went well.Then I changed the bootstrap file from v. 3 to v.4, and the consent message looks wonky. The...

View Article


OAuth2 flows using Refit with Asp Net Core 2.1

Well, I have a WebApi using Asp Net Core 2.1 that have some security endpoints, so I have the following:services.AddAuthentication(options =>{...

View Article

What does ASP.NET Core Identity provide that I cannot do with bare...

Hi folks,I'm looking into removing Azure B2C from a project of mine, for reasons relating to automation and such (which B2C is not yet very compatible with), but want to keep my auth work flows the...

View Article

Null Exception Issue When Working with Jwt Token

Hello Microsoft Team,When i try to login by username and password. null exception error occur when controller hit opt.TokenValidationParameters = new TokenValidationParameters() which is available in...

View Article


How to resize image before upload to varbinary column?

HiI'm uploading an image to a varbinary column in the database successfully. But I want to resize it before uploading.So this is what I tried:Guests model:public byte[] Image { get; set; }public string...

View Article

Javascript and Asp.Net Core 3.1 input check boxes broken

Hello,     So I had this working in Asp.net Core 2.2 with Twitter-Bootstrap 3.3.7.  I then upgraded to Asp.net Core 3.1 and Twitter-Bootstrap 4.4.  Now I am unable to get some of my javascript...

View Article

Problem with relationship between User (testTaker) and Question while writin...

Hi guys,I develop Quiz application where users can login and take test. My problem is that I cannot write right action in controller so that when each user submit their answer while they are logged in,...

View Article


TcpClient connection slower than .NET?

Before I start wasting time with code a quick summary. I wrote a HttpClient for some remote service we have to connect to. Wrote it all in a NET Standard 2.0 library and then wrote two console apps...

View Article


Asp.net core thread safe global variable

I have a .net core razor app that has a special use case where I need to have a global counter that will be incremented by every request, and yet it should remain thread-safe.Also at web application...

View Article

Why I can't match the .html suffix in router?

I want to match the .html suffix.For example, the default index page is https://localhost:44354/home/indexI want to match this URL alsohttps://localhost:44354/home/index.htmlI added these codes in...

View Article

How to Display popup from external html file?

HiIn my view, i have button which display a popup from external html as template. here is my code :my view code :<button type="button" id="btnNew" class="btn btn-success btn-sm"...

View Article

Upload image or multiple using razor page only, no code behind

I know how to use sql server in razor, just quick example:@page @using System.Data.SqlClient @using System.Collections.Generic; @using System.Data; @using System.Linq; @using System.Threading.Tasks;...

View Article


Optimisation of Reverse Proxy

Hi guys,So I am currently working on implementing a new project I am using MVC .NET Core 3.1 to do all of my developments.I have a requirement to create a reverse proxy which all of my client side...

View Article

Add items to a list from view model

Hey how's it going,I'm working on a deck builder for a card game. My rough build is up on https://chronoclashdeckbuilder.azurewebsites.net/DeckBuilder and I have the project on my github...

View Article


EntityFrameworkCore - Class with many list of the same class

Hi guys,I have following class that have many List of the same classes :public class EmailMessage { #region Lists public List<EmailAddress> FromAddresses { get; set; } public...

View Article

How can I Include condition with ICollection Return

HiI have the following model. I am trying to add  some additional select with depends on the condition  Please can you help in my code public class Event { public int EventId { get; set; } public...

View Article


existing php and mysql --- asp.net core CRUD required

dear all,i have a php and mysql environment in Godaddy. I would like to create online applications - so that people can fill their form and submit their queries for admission. Maybe second line will be...

View Article

Can't Run my app has IIS Express

Ok so I did some settings when trying to deploy asp.net core web app locally sometimes ago. Suddenly i just noticed that on vs when I try to run my app.I can not run app with the IIS Express option. I...

View Article

Bundle all Js file into one file

Hi Guys,I am using ASP.NET MVC Core 3.1, I have below JS file how to bundle them into one file and link to Layout.cshtml <script src="~/lib/jquery-vectormap/worldmap.js"></script><script...

View Article
Browsing all 9386 articles
Browse latest View live


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