4704 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
4700 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
4666 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
4649 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
4647 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

4641 0
What is .NET framework? & Understanding .NET framework architecture
In this article, I have explained what is .net framework, how we use it and for what we use .net. Article also explains about .NET framework architecture.
Type
Article
4640 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
4584 1
What is shortcut for expand-collapse sections of code in VS Code?

I have just started using Visual Studio Code and not sure what is the keyboard shortcut for expand-collapse or fold-unfold sections of code in VS Code? Can you help me with that.

...
Type
Question
4543 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
4518 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

Page 22 of 31