Category "asp.net"

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

How to insert properly into a many-to-many relationship?

When inserting data into a many-to-many relationship, should you insert to the join-table or to both original tables? My table models: public DbSet<User>

Is there property to search in a value list in janus gridex by Containes text

I am bindind a combo in janus gridex with value list. combo binding successfully. But i face a problem when i am searching from this combo. it always search wit

IdentityServer4 GetProfileDataAsync is not called for Identity Token, only Access Token

Using IdentityServer 4 (4.1.2), I've added a class implementing the IProfileService interface. The method GetProfileDataAsync is supposed to be called several t

Visual Studio fetches data but not display

I've read all the related answers on stackoverflow. Reportviewer never fills up. There is data but it does not show

It keeps displaying the last data

I'm trying to let user to change the phone number of specific company user entered and displays the new information to user Currently, when I click the change b

A null was returned after calling the 'GetService' method on a store provider instance of type 'MySql.Data.MySqlClient.MySqlClientFactory'

I recently upgraded my database to mySQL 8.0.28, mySQL .NET Connector 8.0.28 & Entity Framework 6.4.4. Now when making a DB call from code I am receiving th

Use Single Button to select Multi option and Update or Insert On Ms Sql Server

Multi select option list image I Use a multi select option list and create a save button. write a query like that is INSERT and UPDATE same action occur on sing

do foreach with a model, Asp.NET 5

I need to do foreach but I get an error System.NullReferenceException HResult=0x80004003 Mensaje = Object reference not set to an instance of an object. This

Response.redirect execute the code inside the pageload twice

I have this link http://localhost:54818/offerslinks/offers.aspx?ID=1 when i clicked it. it loads the page and executes this code twice enter image description

How to display Multi select Listbox as dropdown in ASP.NET web forms

I have the below code implemented, but the desired output is not rendered. The list boxes are used to filter the grid view. I can filter the grid view but the f

ASP .NET Core custom authentication scheme with external login

I have a website where users log in on an external website and are redirected back with a token in the querystring. I then validate the token and create the aut

IIS 8 - HTTP to HTTPS URL rewrite not working - ASP.NET site - Document moved

I have IIS 8 installed on Windows Server 2012 R2 Followed these steps to configure http to https so when clicking on http://a5.example.com, user is redirected t

Maintain sorting throughout paging in gridview in asp.net

How to maintain sorting throughout paging in gridview in asp.net. Below is my code behind for binding grid, paging, and sorting private string SortDirection {

How to prepopulate name of the printer in the browser

I'm using ASP.NET MVC and I'm using a function with AJAX that opens in the browser the window to print. My questions is when I print I would like to already set

Not getting the error message from asp.net web api backend in $ajax method

I have a simple ASP.Net Web API method that returns a BadRequest like this .. catch (Exception ex) { Log.Error($"CreateRequest:requ

How to populate an object inside of an object and call it whenever in C#

So I have an object (Location) This Location Object contains what is a Location I have also added another object that is a Venue on the last line. namespace En

ASP.NET Core 6: How to intercept all incoming requests to call an external service

I am planning to build a micro frontend to intercept and handle all incoming requests just calling an external service that will render the html that the micro

how to add an open "other" field in an http radio form

I want to make an open "other" field in an HTTP radio form like in the following picture. is it possible? i had in mind something like this: class="text"><