Category "asp.net"

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

How do I add new DataSource to an already Databinded CheckBoxList

i'm building a web form that show Database's item(Tables, Rows, FK,...) I have a CheckBoxList of Tables (chkListTable) which will show a new CheckBoxList of Row

SignalR WebSocket Closed with status code 1006 (no reason given) (only on the remote server after deployment)

I'm working with a project which combines angular app on a client-side and .net core 6 web API app on the server-side. To provide real-time communication betwee

KnockoutJS - How to hide certain elements inside foreach using Observable Arrays?

I have a list of WebsiteOwners. I'm trying to build a UI which will display more information about the owners when I click on them. this.toExpand = ko.ob

Writing multithreaded code to generate incremental index

I want to write a code in following scenario : we want to design an invoice generator.this invoice generator also generates an incremental invoice no .Also note

Asp.net 4.8 WebForms authorization using Owin OpenId Connect Authentication (app.UseOpenIdConnectAuthentication)

I am encountering an infinite redirect loop between login.microsoftonline.com and my application. My project is implementing authentication and authorization in

UnauthorizedAccessException when accessing a Windows file share from .NET Core app

I have an application written in .NET 5 ( soon to be .NET 6 ) that allows users to access files stored on a bunch of different user defined Windows network shar

Unable to get response in the variable in Blazor Web App

I am getting the response in the network tab of developer tools, so that means the call is working fine but my variable for some reason is null in the debugger.

Scraping .aspx page with Python yields 404

I'm a web-scraping beginner and am trying to scrape this webpage: https://profiles.doe.mass.edu/statereport/ap.aspx I'd like to be able to put in some settings

Will HttpClient api gateway calls work on kubernetes cluster?

Hello I have worked on API gateway for a identity service. I used HttpClient and currently call the identity service with localhost. My worry is when we deploy

SOAP url to service

I have to make an SOAP web-service and struggles to get the path right: I am bound to use SOAP and I wish (The requirement states) the path to be: http://localh

C# ASP.NET Core DI with logging

I'm looking for DI solution for the following problem. I'm writing a custom SeriLog sync that requires a dependency from my serviceprovider. I can't seem to fig

Validation occurs even Data Anotations is not set

I am working on dot net core 3.1.I have a form for submitting product details. I have used Data annotations with jquery validations. My problem is when I try to

Decorate MediatR IRequestHandler using Microsoft DI

I'm trying to decorate some of my MediatR's IRequestHandlers. To mark handlers I wanted to decorate, I created the interface ICommandHandler that inherits

Where is the Program.cs or Startup.cs file in asp.net?

I am trying to do an online library(as in an online book store) using ASP.NET MVC. I can't find the Program.cs file or the Startup.cs file. I tried manually cre

Using RestSharp to request a file fails with memory issue

I have to API's talking to each other on Kubernetes. The first API asks the second API for a small file using RestSharp (in ASP.NET). The file is 8Kb so basical

How can we add DI (Dependency Injection) of a class library to multiple projects in C# asp.net 6

here I am trying to add dependencies from SchoolAppASPv2.Infrastructure to SchoolAppASPv2.Identity but I am not being able to. It shows an error in using Schoo

Best way to update Database with List where items have been deleted

I'm working on a recipe Webapp with Asp.NET 6.0 and Razor pages. There are three database tables : recipe, ingredient and food. Each Recipe has a Name, Preperat