24,960 questions with .NET-related tags

Sort by: Updated
1 answer

how to pass C# DataTable to JQuery DataTable

I am trying to send data from a C# DataTable to a Jquery DataTable, but I am not sure how. Here's my code, but it is not working. public ActionResult StudentList() { TestViewModel tvm = new TestViewModel(); List<Student> students =…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,411 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
952 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,629 questions
asked 2024-07-21T12:00:18.0066667+00:00
Saeed Ahmad 20 Reputation points
commented 2024-07-21T19:50:12.71+00:00
moneymystica 0 Reputation points
4 answers

Weird errors problem with dotnet watch with blazor/wasm.

I have a really annoying problem with dotnet watch and blazor/wasm. I have a solution in which I have multplie projects, for example an API, a blazor/wasm project and some common classlibraries. I start the API part with CTRL+F5, and I start the Blazor…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,496 questions
asked 2022-02-28T10:45:49.527+00:00
Tendenz Noord 6 Reputation points
commented 2024-07-21T19:49:22.6066667+00:00
Alex FitPlans 0 Reputation points
6 answers

Dynamic Folder Names with AjaxFileUpload

I'm attempting to replace the upload /download pages of our very old ASP classic web site with a web forms app. Keeping as much of the back end stuff the same is important as there is code (mostly VBA in Word, Excel and Outlook) in our daily operation…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,625 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,411 questions
asked 2024-07-18T17:04:20.35+00:00
Ken Krugh 116 Reputation points
commented 2024-07-21T19:34:15.77+00:00
Albert Kallal 5,231 Reputation points
2 answers One of the answers was accepted by the question author.

How to build .net core 8 login and role base functionality, authentication and authorization using jwt token

Hi all i am new to .net core 8 and implementing login funcationality, authentication and authorization funcationality for that i have wrote below two methods. [HttpGet("GetLoginDetailsById")] public async…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,385 questions
asked 2024-07-16T20:32:03.8066667+00:00
coder rock 296 Reputation points
accepted 2024-07-21T18:47:02.8733333+00:00
coder rock 296 Reputation points
0 answers

How to use reflection in ASP.NET MVC with razor/cshtml?

Why are the property names displayed 'correctly' in the input tag but not in the label tag? And why are they pre-typed in the input-fields in HTML? f.e.: every label = name and every input field is the property name, where it should be empty. …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,385 questions
asked 2024-07-21T18:10:17.09+00:00
Dean Marinov 0 Reputation points
1 answer

In what cases an object passed to action method equals null?

i have an action method like so: public IActionResult CreateShirt([FromBody] Person person) { // my code } some courses checks if the incoming object is null. but using postman i couldn't make person null no matter what i do with the request : no body…

ASP.NET API
ASP.NET API
ASP.NET: A set of technologies in the .NET Framework for building web applications and XML web services.API: A software intermediary that allows two applications to interact with each other.
318 questions
asked 2024-07-21T14:32:38.1+00:00
esam 6 Reputation points
answered 2024-07-21T17:35:49.5466667+00:00
Bruce (SqlWork.com) 61,266 Reputation points
1 answer One of the answers was accepted by the question author.

How do I access child elements

Hello. I have a problem, in one of the StackPanels I want to display product cards, where the user can write the quantity of goods purchased and their price, then the program should calculate the total amount. Everything should change dynamically with…

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2024-07-14T09:01:52.8433333+00:00
vitaminchik 486 Reputation points
accepted 2024-07-21T17:11:43.75+00:00
vitaminchik 486 Reputation points
0 answers

How do I fix an issue where deployed .NET 8 API to Azure App Service is just showing placeholder page and is not working?

I am trying to deploy a simple .NET 8 API to Azure App Service using the Github CICD which I setup from the App Service deployment center. After the initial setup, the Github Action ran successfully and in the overview I can see that the deployment was…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,625 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,362 questions
asked 2024-07-21T04:35:36.3066667+00:00
Jordan 0 Reputation points
commented 2024-07-21T15:43:27.0433333+00:00
Jordan 0 Reputation points
0 answers

Error with post method

Hello, In the explanation about the post method, the JSON and the record do not match. Why? This question is related to the following Learning Module

ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
18 questions
asked 2024-07-21T15:31:50.69+00:00
Andi 0 Reputation points
0 answers

ERROR: An error occurred when writing to the output stream.

My iOS game gets always terminated when I try to debug it on my iPad OS version 17.5.1. I use Visual Studio Community 2022 (64-bit) Version 17.10.4 on my Windows 11 laptop. My iPad is connected to my iMac and I paired my iMac with VS. When I click on the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,206 questions
asked 2024-07-16T11:36:33.8033333+00:00
Kim Strasser 836 Reputation points
commented 2024-07-21T12:30:28.31+00:00
Kim Strasser 836 Reputation points
1 answer

Outdated Graph API example for uploading files to OneDrive

var driveItem = await serviceClient.Me.Drive.Root.ItemWithPath(itemPath).Content.Request().PutAsync<DriveItem>(stream); https://learn.microsoft.com/en-us/training/modules/msgraph-dotnet-core-manage-files/7-upload-user-files The example code above…

ASP.NET Core Training
ASP.NET Core Training
ASP.NET Core: A set of technologies in the .NET Framework for building web applications and XML web services.Training: Instruction to develop new skills.
18 questions
asked 2024-07-21T00:48:25.18+00:00
Bob Lan 0 Reputation points
answered 2024-07-21T04:03:07.9866667+00:00
Bob Lan 0 Reputation points
0 answers

Why does a css file embedded in a DLL take 50.9ms to 9.4s to load?

Hi all; I have a Blazor server app running on Azure app server. I am using Application Insights to measure performance and as I am new to Application Insights, this may be a user error. I have MudBlazor referenced in App.razor as: <link…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,496 questions
asked 2024-07-20T22:36:36.99+00:00
David Thielen 2,796 Reputation points
3 answers One of the answers was accepted by the question author.

How can I have Azure App Service environment variables override key vault secrets?

Hi all; If I define a string in both the Key Vault and the Azure App Service environment variables, the app will read the Key Vault entry. Is there a way to have it read the App Service value if set? thanks - dave

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,496 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,362 questions
asked 2024-07-09T22:05:52.75+00:00
David Thielen 2,796 Reputation points
accepted 2024-07-20T22:24:42.0966667+00:00
David Thielen 2,796 Reputation points
1 answer

How to deploy a net core web api with SSL

Need to understand how to deploy and appi en https

Internet Information Services
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,625 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,385 questions
asked 2024-07-20T21:18:05.61+00:00
Mario G Vernaza 0 Reputation points
answered 2024-07-20T21:45:45.1766667+00:00
Marcin Policht 18,010 Reputation points MVP
3 answers One of the answers was accepted by the question author.

.Net 4.8.1 app doesn't start because Windows says .Net 4.8.1 is not installed

We have an app that was built to be run by .Net 4.8.1 x86 . This app is installed in a Windows Server 2022 Datacenter Azure Edition. When we launch the app, a message box is shown by the OS, saying: "This application requires one of the following…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,625 questions
Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
12,613 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,629 questions
asked 2024-01-22T16:12:53.0333333+00:00
Jorge Silva 20 Reputation points
commented 2024-07-20T21:00:56.43+00:00
Stefan Cuypers 0 Reputation points
2 answers

anti-forgery tokens implementation in asp.net web api

Can any one help me with anti-forgery tokens implementation in asp.net web api and AngularJS. how do we maintain the forgery key in web api to validate the key for every request. Please provide the full example.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,411 questions
asked 2024-07-19T13:35:25.67+00:00
Bala Subrahmanya Gopal Jataprolu 0 Reputation points
answered 2024-07-20T20:03:59.19+00:00
Bruce (SqlWork.com) 61,266 Reputation points
4 answers

The type or namespace name 'System' could not be found

When I try to create a new Xamarin Forms app, nothing works. No imports can be found. Almost every line in the autogenerated code has a "not found" error. Visual Studio Enterprice 2019 I've tried to update the packages in nuget packages…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,325 questions
asked 2021-06-04T11:35:21.937+00:00
Brage Mogstad 11 Reputation points
commented 2024-07-20T16:52:27.12+00:00
Daniel Ayala 0 Reputation points
1 answer

Blazor Wasm Hosted with SAML2 authentication

Good morning, We have a Blazor-ASP.NET Core Hosted application on .Net Core 6. In an on-premise IIS for a client where they authenticate against their locally corporate Active Directory. Now we proceed to migrate to the Cloud, logically we no longer…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,496 questions
asked 2024-07-19T05:50:40.92+00:00
Mario Viadero Hidalgo 0 Reputation points
answered 2024-07-20T16:17:49.9733333+00:00
Bruce (SqlWork.com) 61,266 Reputation points
1 answer One of the answers was accepted by the question author.

Can't JoinRoom by Id

Hi, I am a student working on a school project, I am new to this, It is my first time doing NextJs with TypeScript, I also researched but did not see any working solution. I really do not know where the problem is. I would very much appreciate if there…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,385 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,629 questions
asked 2024-07-20T03:13:33.0566667+00:00
Nhựt Lại 65 Reputation points
commented 2024-07-20T13:00:56.8833333+00:00
Nhựt Lại 65 Reputation points
1 answer

Wpf white squares bug on display

When i running wpf application theres little white squares on display where position on mouse cursor. Any one know about these wieard bug

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
asked 2020-03-03T17:47:31.28+00:00
manoj lakmal 1 Reputation point
answered 2024-07-20T12:50:17.2433333+00:00
Ridaali 0 Reputation points