Skip to main content

All Questions

0 votes
1 answer
25 views

dropdown MVC don't keep focus for selected option

I have asp net core mvc application. After clicking filter controller recives propper data, but drop down always shows All option: @{ ViewData["Title"] = "Index"; IsOpenFilterState ...
Maciek's user avatar
  • 171
0 votes
2 answers
46 views

Resolving InvalidOperationException when Passing ViewBag Content List to Partial View in ASP.NET MVC

When I call the partial view inside normal view, I'm getting this error; InvalidOperationException: The model item passed into the ViewDataDictionary is of type 'System.String', but this ...
Omer Arpaci's user avatar
2 votes
3 answers
49 views

How to extend existing third party model?

I have a third party library i am using. The have provided some of the classes for me to use to transfer data from one page to another, but i dont have the source code to make changes, for example ...
KeithViking's user avatar
0 votes
2 answers
53 views

Unable to access the registration page in ASP.NETCore

Account folder in project and Register.cs modelProgram.cs codeThis is the user registration controller code on the site that returns the registration view, but when it runs and clicks on the ...
AliHANiF's user avatar
0 votes
0 answers
27 views

MVC .NET Core Localization Dynamic

I have added a multi-language option to my site using MVC .NET Core localization. However, I believe this will be problematic in the dynamic areas of the site. I don't want to resort to file ...
Eray Genç's user avatar
-1 votes
1 answer
40 views

In .net core I want to get API through the two tables

In .Net core I have two tables with Buyer, and the relation table as RicePrice: public class Buyer { [Key] public int Id { get; set; } public int Quantity { get; set; ...
Karthick1211's user avatar
0 votes
1 answer
37 views

How to pass IHttpContextAccessor as parameter to ValidationClass' Method

I have a class for Validation which is: public class PageValidation:ValidationAttribute { private readonly string UserKey; private readonly HttpContext _context; public PageValidation(...
Yunus Mert Çakar's user avatar
0 votes
0 answers
76 views

The ID is not taken from another table

enter image description here I checked the postponement, and realized that the id of OrderDetail is assigned 0, which may be why I don't know, since I checked the id has such a string in the migration ...
user24902131's user avatar
0 votes
0 answers
26 views

I Can't sign in with HtmlContext.Session in .Net 8.0

I can not sign in with using htmlcontext.session, it redirects me again in log in page. I have searched many articles in online but nothing solved my problem and I do not want to use JWT Token for ...
codAction's user avatar
1 vote
1 answer
46 views

Runs in Visual Studio but returns 404 error when deployed in IIS

Hi everyone I hope everyone and safe and doin’ well. I just really need your help with an error I have been fixing for less than 2 weeks. I have created Asp Net Core Web-App, when I run it with IIS ...
neckart's user avatar
  • 13
0 votes
0 answers
36 views

ASP.NET Core 8 : Type on ViewDataDictionary

I have this problem : InvalidOperationException: The model item passed into the ViewDataDictionary is of type 'System.Collections.Generic.List`1[BookingPortal.Models.ViewModels.WarehouseViewModel]', ...
MarcoD's user avatar
  • 1
0 votes
1 answer
93 views

Multiple models in one view ASP.net core mvc

Good day. I encountered a problem while developing an asp.net core mvc application. The fact is that I have a Dashboard page for which the data is taken from the @model DashboardPageViewModel. Also, ...
ch0va's user avatar
  • 1
0 votes
0 answers
209 views

Error running .NET 6.0 project after upgrading to Visual Studio 2022 Version 17.9.6

I recently upgraded my development environment from Visual Studio 2022 Version 17.8.3 to Visual Studio 2022 Version 17.9.6. After the upgrade, I encountered the following error when attempting to run ...
Bandolero's user avatar
0 votes
1 answer
46 views

ASP.NET Core - Change Url of Product Details when select Color

I am working on E-commerce Laptop. I want when the user chooses another color in the select drop-down, it will redirect to the product of that color. I am using JavaScript to redirect the URL, here ...
John's user avatar
  • 63
2 votes
0 answers
109 views

InvalidOperationException: Unable to resolve service for type 'Microsoft.Identity.Abstractions.IDownstreamApi'

Create New Using Authentication Type: Identity Platform I used a wizard to create a new app registration that added configuration to my Program.cs and settings to my appsettings.json. My Program.cs ...
Craig Gers's user avatar

15 30 50 per page
1
2 3 4 5
66