I have a multi-select dropdown list and I need to find out if a specific option is selected using jquery. I have the following just to test if the ev ...
I have a multi-select dropdown list and I need to find out if a specific option is selected using jquery. I have the following just to test if the ev ...
I have read through countless tutorials, articles and questions. I cannot figure out why [Authorize(Roles = "SuperAdmin")] or any other role is not w ...
EDIT: Good information provided below to diagnose, but the issue was I was running Visual Studio 2022 17.3. Version 17.4 is required for .NET 7, and I ...
I am working on an ASP.NET Core MVC project. In appsettings.json file, I have the following connection string: It is working fine when the project ...
I can run my asp.net 6 mvc app in VS2022 with no issues. When I publish to a folder and deploy to IIS or run the exe myself I get an error 'the view I ...
I try to make an cascading dropdown, but I have problems with the sending and fetching of the response data. Backend: Here I get the correct data. ...
I created a .Net Core 3.1 MVC application that is using induvial user accounts as authentication. I deployed the site to IIS, which works. However whe ...
How to import large CSV file to SQL server using .Net Core API (C#) I have tried with below code , it's working for small amount of data but how can ...
Upgrading .net 4.8 mvc app to .net 6. I am keeping the static content in the same folders as in the previous web app project and using the web optimiz ...
I'm designing an infrastructure for application tracing with the following constructs: The applications are written in .NET 6 The logging protoc ...
I've created an ASP.NET Core 6 MVC project, and I want to see "Test" when i request it but I'm getting NullReferenceException. But when I create the R ...
I want to redirect the user to an action method page when there is a 404 error. For example, my domain is www.test.com, but when the user navigates to ...
I have two Entities that have many To many relationship, Book and Tags asp Created automatically a table for the two entities, Using the code first ap ...
I have a web application that makes use of a number of Areas to hold various sections. Each area makes use of a unique "_layout.cshtml" view. I have ...
I wish to make buttons just like the navigation ones in opera gx new tab or firefox new tab in asp.net for my web site I tried something like this ...
Project type: ASP.NET Core 7 MVC web application. I'm trying to post back to the controller when the check-circle icon is clicked, but I'm getting an ...
I have the following form: If I leave the password empty, a validation message (the model uses DataAnnonations) is displayed right below the contro ...
Database table: Model class: ClassMappper Insert code: I get this error: System.ArgumentException: 'Object of type 'System.Int64' ca ...
I am trying to add a controller with routing to a Razor server-side app. I tried several things but I only see solutions for .NET 6 and cannot figure ...
I'm new with Razor Pages and I found out that code can be divided using code-behind file. So I created this Index class to initialize my date and prin ...