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

a quick jwt question

if i can change the payload of the jwt without it affecting any validation how is it considered secure?

View Article


ASP.Net 3.1 : Error after updating Nuget Package

I am having Asp.Net 3.1 application, and I am getting error After updating my nuget packages 'Microsoft.EntityFrameworkCore' in below line as'The specified field '_redirectUris' cannot be used for the...

View Article


How to refresh access token using refresh token?

I can't find a tutorial or a code example where it shows how/when to refresh the access token. How to implement refreshing the new access token when it is about to expire?This is what I have so...

View Article

After form submitted event?

HiIn my index view, use can add/update order in modal form (via javascript client side code). it works correctly. i want to close modal form & do some actions after form has been submitted.can...

View Article

twofactor sign in issue

Hia user logins in with there username and password and i send them a code.the user is directed to a enter code page.where and how do i hold the userid?do i just put it in the url, which seems a little...

View Article


Send Message to Telegram From Asp.net Core

Hi, i use this code to send message to telegram from asp.net core in web , and its worked but i don't want enter verify code every time when i want send message  how can i use it without verify code...

View Article

How can I limit the text input only to allow English characters and numbers?

These days I am working hard on blazor server-side for validation.Here are my codes:public class ModelClass { [Required] public string Code { get; set; } } public ModelClass Model { get; set; } = new...

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


Migration Issue with Npgsql.EntityFrameworkCore.PostgreSQL

Hi,I have following problem when I try to add a migration:Premises:I´m using Net.Core 5.0.0 preview 2Database PostgreSql last versionEntity framework tools 5.0.0 preview...

View Article


How to sanitize inputs for Html.Raw on server side

I have several views where I use @Html.Raw and would like to sanitize rich text inputs. Possibly what the Rich Text Box may emit and take a white list type of approach to the tags/attributes that the...

View Article

How to get a photo image to show via Controller

In my controller I am trying to get the photo image but it doesn't come across on the view. I feel like the problem is with the code in the controller. What am I missing?Controller: public async...

View Article

Dynamic routing problem

Hello everyone, I'm developing a multilingual website. I read menus from db E.g : Contact - en Kommunikation - de I have contactController.cs [Route(“{LangCode}/contact”)]...

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


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

Sending emails from a .NET API and Angular project

I'm learning to code by developing a project that uses Angular and .NET core for an API. I'm starting into a new area of this project that I'm hoping to get a little advice on as it a new area to me,...

View Article


Help needed in Passing a method in Typeof()

Hi,I am using swagger for my asp.net core 2.2 documentation and for displaying the response model, i have to use[ProducesResponseType(typeof(ResponseObject), 200)].In my case, i am not directly...

View Article

Help Needed in Transaction

<div>Hello,</div> <div> </div> <div>I am using asp.net core 2.2 and i would need to use thetransaction scope. on my business layer i am using transaction scope as...

View Article


Can i host asp.net in this platform.

Hi guys I recently started asp.net core development and now I'm finished and ready to launch my first website but I'm really confused about which hosting plan to buy. I found this hosting plan under my...

View Article

Why my website can not works in IIS of Windows Server 2019?

I have a website made by asp.net core 3.1.It is the first time I publish it on Windows server 2019 Datacenter 1809(17763.1158).However, it doesn't work but the IE reports ''Can’t reach this page' error...

View Article

can i put cors into a mediator pipelinebehaviour?

HiI need to add cors to my public api, and i needto allow it to be dynamic, eg adding new ui's through an API, so hard coding it into the startup file isn't an optionsIs there any reason i should build...

View Article
Browsing all 9386 articles
Browse latest View live


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