4,400 questions with ASP.NET Core tags

Sort by: Updated
1 answer One of the answers was accepted by the question author.

Asp.net core mvc razor refresh UI on new web api update

I have an asp.net core MVC app that consumes an web api and displays the result in a table. How do I refresh the table when the api has new data? I populate the view with my controller by fetch from the api.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
asked 2021-07-14T12:37:48.697+00:00
Daniel 156 Reputation points
accepted 2021-07-15T11:34:39.633+00:00
Daniel 156 Reputation points
0 answers

Is it posssible to create directory and upload files into shared drive in Razor Pages

Hi, I want to create a file repository using razor pages applications. when i click on add button i should be able to create a folder where i can upload files . i want to create the folder inside a shared drive and i should be able to access the files…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
asked 2021-07-15T02:26:55.633+00:00
Blooming Developer 276 Reputation points
commented 2021-07-15T11:14:02.72+00:00
AgaveJoe 27,696 Reputation points
1 answer

LogLevel values not matching

Hello, Can you please advise why the values for LogLevel in Microsoft.Extensions.Logging, do NOT match those in Microsoft.ApplicationInsights.DataContracts? here is the code: So in my C# code, when I have the statement: …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
asked 2021-07-14T20:01:02.013+00:00
simplify3000 1 Reputation point
answered 2021-07-15T02:40:41.663+00:00
Zhi Lv - MSFT 32,106 Reputation points Microsoft Vendor
1 answer

Add Access Control Origin Response Header

In my ASP.NET CORE MVC, there is a dist folder in wwwroot. Following this example: https://learn.microsoft.com/en-us/aspnet/core/fundamentals/static-files?view=aspnetcore-5.0 I configured the startup class to add the Access Control Allow…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,648 questions
asked 2021-07-13T18:43:58.733+00:00
Leonardo Santos 1 Reputation point
answered 2021-07-14T14:18:19.32+00:00
Leonardo Santos 1 Reputation point
1 answer One of the answers was accepted by the question author.

How to group the data by the datetime intervals?

I am using asp.net core web api + entityframework core 5.0. there is a table : Id datetime value 0 2021-07-08 14:46:46. 1 1 2021-07-08 14:46:47 5 2 2021-07-08 14:46:48 …

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
726 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: An environment required to run apps that aren't compiled to machine language.
1,141 questions
asked 2021-07-09T03:13:56.44+00:00
mc 4,111 Reputation points
accepted 2021-07-14T06:27:04.65+00:00
mc 4,111 Reputation points
0 answers

Import Data from Multiple excelsheets using EPPlus

I have to import data from multiple excel file with multiple worksheets to a single postgreSQL table. Is it possible to import using EPPlus library if possible how can I implement that using ASP .Net Core

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
Office Development
Office Development
Office: A suite of Microsoft productivity software that supports common business tasks, including word processing, email, presentations, and data management and analysis.Development: The process of researching, productizing, and refining new or existing technologies.
3,720 questions
Excel Management
Excel Management
Excel: A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.Management: The act or process of organizing, handling, directing or controlling something.
1,689 questions
asked 2021-07-14T03:46:18.443+00:00
AG Mohamed 1 Reputation point
0 answers

SetLockoutEnabledAsync possibly has the wrong description

I am working with ASP.NET Core 3.1 on a system to lockout users after 5 attempts. I am trying to use the SetLockoutEnabledAsync(user, false) Method from the UserManager class to unlock an user after they have reset the password, since its decsription is…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
asked 2021-07-13T15:51:24.99+00:00
Simone Brunitti 1 Reputation point
commented 2021-07-14T01:44:01.537+00:00
Rena Ni - MSFT 2,066 Reputation points
1 answer One of the answers was accepted by the question author.

Asp.net : table that i want to collect values from and add to empty input to a form

I have an asp.net core MVC app which I have a form with some fields in a table. On the same page, with JavaScript, I generate rows and cells to an existing table that is not in the same as my form. On post in my form I want to collect the values…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,648 questions
asked 2021-07-10T20:14:44.19+00:00
Daniel 156 Reputation points
accepted 2021-07-13T20:08:12.767+00:00
Daniel 156 Reputation points
0 answers

SSRS Render Report Using WCF Service : Endpoint = Address=error CS0103: The name '_address' does not exist in the current context

My Development Environment is Dot net 5 and SSRS 2016. SSRS Repot service development another Class Library, WCF Web Service is implement in this library. Using Reporting Services (SSRS) as a reference in an ASP.NET Core site :…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,878 questions
asked 2021-07-06T08:18:33.987+00:00
Ali Akbar 1 Reputation point
commented 2021-07-13T14:05:05.927+00:00
Nathan 1 Reputation point
2 answers One of the answers was accepted by the question author.

Implement ASP.Net core rate Limit without an Endpoint

I'm using AspNetCoreRateLimit Nuget package. Currently it's working nice, something like below: "IpRateLimiting": { "EnableEndpointRateLimiting": true, "StackBlockedRequests": false, "RealIpHeader":…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
asked 2021-07-12T11:24:48.95+00:00
Ehsan 41 Reputation points
accepted 2021-07-13T09:59:47.47+00:00
Ehsan 41 Reputation points
2 answers

autocomplete only works the second time

im trying to repurpose the code found here: https://www.w3schools.com/howto/howto_js_autocomplete.asp the only difference is i wanted to use my database instead of a hard-coded string for the most part i was successful with …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,417 questions
asked 2021-07-08T20:02:11.643+00:00
Asistance Request 21 Reputation points
commented 2021-07-13T07:01:13.353+00:00
Yijing Sun-MSFT 7,071 Reputation points
0 answers

Proper way of wrapping the response along with exception

I have a controller that looks like this: [HttpPost] public async Task<ActionResult> CreateAsync(TodoItems item) { await item.AddNewItemAsync(item.Id, item.Name); return Ok(new ApiOkResponse(item, $"An item has been…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,648 questions
asked 2021-07-09T03:32:48.277+00:00
Aakash Bashyal 1 Reputation point
commented 2021-07-13T02:09:23.683+00:00
Zhi Lv - MSFT 32,106 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

SQL-IIS, Fastest way to return an image: from the file system or database

I have about 100GB of data imported into SQL Server from a Google Firebase database. The bulk of this data are images which are stored as nvarchar(max) which looks something like this: /9j/4AAQSkZJRgABAQAASABIAAD/4QBMRXh.... We have to do 2 things with…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
SQL Server Reporting Services
SQL Server Reporting Services
A SQL Server technology that supports the creation, management, and delivery of both traditional, paper-oriented reports and interactive, web-based reports.
2,878 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,601 questions
asked 2021-07-11T18:57:57.833+00:00
moondaddy 911 Reputation points
commented 2021-07-12T21:22:08.68+00:00
Erland Sommarskog 107.1K Reputation points
1 answer

.Net core support in new Mac OS( ARM based processor)

1.Is .Net Core 3.1 supported in Mac 12 (currently we have mac 12 beta version) 2.What about the support of visual studio to build the .net applications for ARM based Mac systems apart from the current Rosetta translation. Are their any universal…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
asked 2021-07-12T09:27:13.857+00:00
Megha Joshi 1 Reputation point
answered 2021-07-12T14:47:45.003+00:00
Bruce (SqlWork.com) 61,731 Reputation points
0 answers

File Uploading in Scaffolded Page

Hi In my Scaffolded Create Page i have a option for file upload. I want to show this uploaded file in my edit page. In my create page, im creating a folder with name as record ID and the file will be saved into this folder. var…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
asked 2021-07-09T09:56:26.293+00:00
Blooming Developer 276 Reputation points
commented 2021-07-12T10:29:30.31+00:00
AgaveJoe 27,696 Reputation points
1 answer One of the answers was accepted by the question author.

InvalidOperationException in WebApiConfig File

I'm following this video on creating service stack for Entity Framework and the video uses config.Routes.MapODataRoute("odata", "odata", builder.GetEdmModel()); in their WebApiConfig file. I am using the same piece of code in my…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,647 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
asked 2021-07-11T13:02:51.347+00:00
Jay Vijay Modi 61 Reputation points
accepted 2021-07-12T09:51:10.487+00:00
Jay Vijay Modi 61 Reputation points
1 answer

I want to translate my query to entity framework fluet api but it's giving errors

Hi all, I am trying to implement a query in entity framework core asp.net core 5 using fluent api instead of linq. This is what i want to accomplish SELECT * FROM tblCourseAllocations as allocation LEFT JOIN tblSemesters as semester ON…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
726 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,361 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,648 questions
asked 2021-07-10T14:29:26.823+00:00
Malik Humza Yunas 1 Reputation point
commented 2021-07-11T00:30:39.44+00:00
Michael Taylor 51,346 Reputation points
0 answers

Creating own Register/users Table instead of migration Identity

While creating a register system I was thinking to creating my own tables: UserTable = email, encrypted password ,name etc. RoleTalbe = roleName and RoleDescription RoleUserTable = user and RoleName. It seems to me better instead of having to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,417 questions
asked 2021-07-09T17:52:24.967+00:00
osyris 236 Reputation points
commented 2021-07-09T18:26:53.973+00:00
AgaveJoe 27,696 Reputation points
2 answers

How to block those requests?

One of my website is being under attack. I am getting requests, as shown below, from several IPs addresses. Is there a way to block them ?

Internet Information Services
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
asked 2021-07-09T02:57:15.57+00:00
Corobori 26 Reputation points
answered 2021-07-09T14:09:16.38+00:00
Corobori 26 Reputation points
2 answers One of the answers was accepted by the question author.

What is the different between List into Raw View and List into Array ?

I've result set as following, Raw View Into Array How to convert List Raw View into List of Array?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,400 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,648 questions
asked 2021-07-08T23:37:54.657+00:00
Jerry Lipan 916 Reputation points
accepted 2021-07-09T13:56:21.663+00:00
Jerry Lipan 916 Reputation points