Category "asp.net"

Changing String From Another Model

Is it possible to change a string from another model, basically we have a simple login page which takes the username and then directs you back to the index main

Prompt message if Excel column has some value in asp.net c#

I have a criteria where user uploads excel. So in that I want to check if column Is Replacement (Y/N) has values as Y then I want Replacement SAP ID cannot be b

BlockingCollection with ConcurrentQueue still remain object after GetConsumingEnumerable

I have 2 threads, one is put data to IBlockingColection, and the second read it then send to kafka. My application is asp.net core api. public class ConcurrentQ

ASP.NET delete row from database using a cshtml webpage interface

I am having trouble trying to delete a row by Id. I display every row of my db in a table and next to every row I have a button that should be used for deleting

Can't connect to Redis Stack from ASP.NET application inside a container

I have an asp.net webApi application and using redis stack as the main database. I was able to connect to the database and perform operations normally till I ma

EF Core 6 with Pomelo EntityFrameworkCore MySql fails to create database

I am using EF Core 6 with Pomelo.EntityFrameworkCore.MySql and code first. I have the following code in my connection string. public sealed partial class MyDbCo

I would like to pass the values that i have in my view to a action

I'm developing a school project using a html.beginform to when i click in a button i go to a diferent Action, but i need to pass the values that i have inside m

Is there a way to covert Unicode Hex Character Code a to a simple "a" so that I can get an alphabetic string?

This character format encoding description can be found in All such encoded characters and character description. The exact specific string I want to convert is

How to make other methods call after return OK response to client in ASP.Net Core

I am using the asp.net core WebAPI Project in which a client is uploading some files to a server. The whole uploading is done using chunks. The problem is when

Dynamic script content when calling spa.UseAngularCliServer(npmScript: "start");

I need to pass in dynamic content into the start script for Angular when starting it from .Net. Right now I have: spa.UseAngularCliServer(npmScript: "start"); A

ModelState showing invalid, but the value is there?

I hope this makes sense what I am trying to do I have an application built with RazorPages that I am adding server side validation to for a Uni Project I have a

Session Cookie (Authentication Related) Does Not Contain The "HTTPOnly" Attribute

Can someone help me in resolving Qualy's issue? After Qualys scan, there is an issue that says to add the HTTP Only flag. I have set the HTTP Only flag in web.c

Allow the user to try again to connect after authentication failed access_denied

I have a web application that uses OpenIdConnectAuthenticationOptions to connect through Okta. Everything works as expected. When a user is connecting through O

asp.net core OAuth access_token verification fails with "IDX10609: Decryption failed. No Keys tried: token: 'System.String'.:"

I have a single page application in Blazor WASM that connects to OAuth0 and receives JWT token when a user get authenticated via OAuth. My OAuth application use

Change request Content-Type to allow invalid/unsupported request Content-Types

A client is currently sending our ASP.NET 4.x/Core REST APIs the correct request payload but invalid request Content-Type which is resulting in 415 status codes

MiniProfiler dynamic response handling in .NET 6

Recently I have integrated MiniProfiler into a .NET 6 API and all works well, can see the SQL queries via EFCore and all on the dashboard. What I would like to

Multiple actions were found that match the request - Net Framework 4.6.1

I have the following endpoints in my project A -> http://localhost:8089/products/ B -> http://localhost:8089/products/{id} I need to add the following: C

Codes for reCaptcha v2

I have a simple contact us form [asp.net]. I also have Google reCaptcha-v2 site key as well as secret key. Can you please let me know what codes I need to add a

Bootstrap 5 Show Modal Code Behind (Asp.net C#)

I tried everything but I couldn't success it. <script type="text/javascript"> function openModal() { var myModal = new bootstrap.Modal(doc

How to use Performance Profiler with Instrumentation on Asp.net Core app in Visual Studio 2022

How do you get instrumentation performance data from an ASP.NET Core web app using VS 2022 tools? We now an app with an ASP.NET Core Web API and MVC app pair. T