4963 1
The type of one of the primary key values did not match the type defined in the entity

Hello

I am trying to fill a dropdown list with the values of my tables. I don't need all of the values so I have to use a "where" clause

here is my code

...
Type
Question
4949 5
Display google pie Chart data per record in MVC

I have a survey in my MVC app and I need to display its results to a pie chart. This is what I have done by so far (according to this)

I would like to ask if it possible to bring the data for my Survey Model

...
Type
Question
4908 1
how to improve performance of ASP.NET MVC application?

I would like to know methods to improve performance of asp.net MVC web application? To get better score on Google Page Insights

Thank you

...
Type
Question
4888 0
How to connect sql server database in ASP.NET Core MVC
In this article, I have mentioned step by step procedure to connect to sql server database using Entity framework core in ASP.NET Core MVC
Type
Article
4885 1
Getting error (500 internal server) while fetching JSON, when more than 1000 rows is returned from database?

1. I want to fetch some data from DB (parameters false ,true,some id(e.g.: 30245)) Following is function written in controller :

...
Type
Question

4885 1
How to get Currently logged in UserId in ASP.NET Core?

Hello, I would like to know how can I get currently logged in User ID using ASP.NET Core Identity in ASP.NET Core 3 or 6? Trying to Use MVC Version 'User.Identity.GetUserId()' but it doesn't help.

...
Type
Question
4876 1
More than one DBContext was found - EF Core

I am trying to add new migrations in ASP.NET Core 3 web-api application which has already created database and using code-first approach, so when I trying to add new migrations, after creating Class and adding it in DBContext, getting this error, as shown below

"More than one DbContext was found. Specify which one to use. Use the '-Context' parameter for PowerShell commands and the '--context' parameter for dotnet commands."

...

Type
Question
4869 2
how to save Excel data into database using MVC C#?

I need some help in my asp.net MVC web-application, how can I Upload an excel file and extract or save(import) excel file data into my MS SQL server database using asp.net MVC and C#?

Any reference link or code will help, as I want to perform both uploading a file and saving its data into database, any combined solution will work

thanks

...
Type
Question
4815 1
Dynamically Create Grid View on another Gridview row Index

Hello Guys !!

Actually, My Requirement is to create a Gridview dynamically and bind data in grid view and generating another gridview same time on the previous grid view row again and again...

1.Binding Gridview Dynamically from code Behind In asp.net from database table

2.Generating another Gridview on from above gridview row index if data find.

My Code

...
Type
Question
4704 2
PagedList in BootStrap pop-up Modal using Asp.Net CORE MVC

I am showing some data in modal pop-up using BootStrap .Basically I am using for each loop for displaying Data. So I would like to know, How To apply paging in these scenario using PagedList asp net core mvc or any other plugin in pop-up modal.

thank you

...
Type
Question

Page 22 of 31