11,112 questions with C#-related tags

Sort by: Updated
1 answer

How to Rename a Solution and Projects in Visual Studio 2022 Without Affecting Functionality?

I have a working application that includes Blazor Server, Blazor WASM, and an API. I want to change the names of the solution and the projects while ensuring that the current application remains unaffected. What is the easiest and problem-free way to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,675 questions
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,621 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.
11,112 questions
asked 2024-11-29T07:38:49.4766667+00:00
Cenk 1,021 Reputation points
answered 2024-11-30T17:52:28.5666667+00:00
Bruce (SqlWork.com) 68,311 Reputation points
2 answers

How to merge file with different extensions in C#

Merging Files having different extensions into one given file with .mrg extension

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.
11,112 questions
asked 2024-03-05T04:15:57.2933333+00:00
yashrajsinh gohil 0 Reputation points
answered 2024-11-30T02:51:43.9933333+00:00
Bruce (SqlWork.com) 68,311 Reputation points
1 answer One of the answers was accepted by the question author.

Sending Image screenshot to email

Hi, I was trying to capture div contents and send to email but when I tested it, I got this Ststem.Byte[] Here is what I got I then tried this, but may I please know the correct one to use, please? I have image controls to the AlternateView protected…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,981 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,541 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.
11,112 questions
asked 2024-11-28T11:26:55.09+00:00
Donald Symmons 3,006 Reputation points
accepted 2024-11-29T18:24:21.9933333+00:00
Donald Symmons 3,006 Reputation points
2 answers

Embed SSRS rdl Reports to an existing ASP.NET application

I have a project scenario that requires embedding SSRS rdl Reports to an existing ASP.NET Core application. I have made some research prior to posting here and I came across a library called ReportViewer, was able to get some results but only showed one…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,675 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,541 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.
14,148 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,950 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.
11,112 questions
asked 2022-05-19T14:51:39.307+00:00
Dervishi, Erald 66 Reputation points
answered 2024-11-29T18:16:47.65+00:00
Md. Sakibur Rahman 0 Reputation points
2 answers One of the answers was accepted by the question author.

How to add an item in a sharepoint list, for a choice.

Hi, I am trying using c# to create an item in a sharepoint list. I try directly in the graph explorer, and i can create a sharepoint list item directly in it if the field is basic ( text or number). But when it comes to a choice column i failed. I keep…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,519 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.
11,112 questions
SharePoint Development
SharePoint Development
SharePoint: A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.Development: The process of researching, productizing, and refining new or existing technologies.
3,123 questions
asked 2024-11-28T19:16:38.8566667+00:00
Jean-Sébastien Dufour 20 Reputation points
accepted 2024-11-29T13:21:05.5333333+00:00
Jean-Sébastien Dufour 20 Reputation points
0 answers

asp.net Web application signing in Azure Active Directory

I have the following code in my application for AD authentication: public void SignIn() { if (!Request.IsAuthenticated) { HttpContext.GetOwinContext().Authentication.Challenge( new AuthenticationProperties{ RedirectUri =…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,541 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.
11,112 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,468 questions
asked 2021-11-07T00:21:56.847+00:00
Anjali Agarwal 1,491 Reputation points
commented 2024-11-29T12:07:39.2866667+00:00
Simon Gymer 0 Reputation points
1 answer

configuration method not executing in startup.cs

I have created new mvc project and added startup.cs class with one method. but debug is not coming in this method directly debug is going on homecontroller but it should come first startup class. why my debug is not coming in configuration method. public…

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
7,395 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,541 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.
11,112 questions
asked 2023-07-18T03:39:54.4633333+00:00
N 1 Reputation point
commented 2024-11-29T09:12:22.19+00:00
Vruti Soni 0 Reputation points
3 answers

Bubble sort implementation in c#

Here's how to implement a bubble sort in c#. Follow for more content like this :) int[] array = { 108, 23, 69, 420, 9 }; int temporary; for (int j = 0; j <= array.Length - 2; j++) { for (int i = 0; i <= array.Length - 2; i++) { if…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,981 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.
11,112 questions
asked 2023-04-26T17:46:47.1+00:00
Jack Herer 110 Reputation points
edited an answer 2024-11-29T08:57:06.71+00:00
Aleno Jankowsky 0 Reputation points
4 answers One of the answers was accepted by the question author.

Multiple emails validation with split comma in a Textbox

Hi, If I have a TetxtBox that will be used to send messages to multiple emails, how can I validate these emails that will be inputted in the textbox? The emails are separated by comma. e.g. myfirstmail@hotmail.com, mymail@outlook.com,…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,981 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,541 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.
11,112 questions
asked 2024-11-25T16:16:54.6466667+00:00
Donald Symmons 3,006 Reputation points
edited a comment 2024-11-28T22:35:12.03+00:00
Donald Symmons 3,006 Reputation points
0 answers

How to fix Aggregate Measurements in order to display properly?

Hi, I am working on a Blazor application for weight measurement. Data is coming from a third-party device in real time. I have this weighing results component on my dashboard that I am trying to display on a grid according to some rules. The data grid…

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,621 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.
11,112 questions
asked 2024-11-27T15:54:00.43+00:00
Cenk 1,021 Reputation points
commented 2024-11-28T12:09:49.44+00:00
AgaveJoe 28,861 Reputation points
2 answers One of the answers was accepted by the question author.

Read an HTML-table in C#

Hello I'm trying to read an HTML-table from this link [https://www.borsaitaliana.it/borsa/obbligazioni/mot/btp/lista.html?lang=it&page=1] I wrote this code string strLineOut = ""; string pathOut =…

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.
11,112 questions
asked 2024-11-28T08:33:43.3033333+00:00
Maurizio Porro 20 Reputation points
commented 2024-11-28T09:20:35.46+00:00
Maurizio Porro 20 Reputation points
0 answers

Windows.Data.Pdf.PdfDocument Crash with file size greater than 2GB

Same issue as here (no replies there, it's an old thread) https://learn.microsoft.com/en-us/answers/questions/248422/windows-data-pdf-pdfdocument-crash My notes: Crash is not catchable which makes it really hard to find reason for issue or…

Universal Windows Platform (UWP)
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.
11,112 questions
asked 2024-11-12T17:59:23.92+00:00
Jérôme S 5 Reputation points
commented 2024-11-28T07:42:46+00:00
Junjie Zhu - MSFT 19,651 Reputation points Microsoft Vendor
4 answers

How to close Bootstrap modal in Blazor WASM?

Hi, In my Blazor WASM (.net 6) application, I am displaying a modal popup as follows. <!-- Modal --> <div class="modal fade bg-transparent" id="templatemo_search" tabindex="-1" role="dialog"…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,675 questions
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,621 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.
11,112 questions
asked 2024-06-21T19:34:00.18+00:00
Cenk 1,021 Reputation points
edited a comment 2024-11-28T05:40:21.2333333+00:00
SurferOnWww 3,376 Reputation points
0 answers

System.NullReferenceException: 'Object reference not set to an instance of an object.' when navigating to page in WinUI

I am working with a WinUI project which is built based on the MVVM Toolkit template. When I use NavigationService.NavigateTo(typeof(EmployeeViewModel).FullName!); to navigate to EmployeePage, the program crashes with the bug that…

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
801 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.
11,112 questions
XAML
XAML
A language based on Extensible Markup Language (XML) that enables developers to specify a hierarchy of objects with a set of properties and logic.
821 questions
asked 2024-11-23T09:39:11.4333333+00:00
LÊ CAO TUẤN VŨ 0 Reputation points
commented 2024-11-28T01:32:38.5666667+00:00
Roy Li - MSFT 33,491 Reputation points Microsoft Vendor
0 answers

how to fix "Designer load encountered and error. Please ensure that the project can be built successfully."

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,908 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.
11,112 questions
asked 2024-04-12T17:01:22.2533333+00:00
Santos, Mark Jairo (Student) 25 Reputation points
commented 2024-11-27T19:46:28.29+00:00
Jonathan Wood 11 Reputation points
2 answers

Issue with Forbidden Error When Updating BookingBusiness in Graph API

I am trying to update a booking business using the Graph API in C#. I can retrieve my booking business without any issues. However, when attempting to update this booking business, I receive a "Forbidden" (403) error, even though the changes…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,519 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.
11,112 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,577 questions
asked 2024-11-26T07:50:08.55+00:00
Marco de Jong 0 Reputation points
commented 2024-11-27T02:26:03.15+00:00
Yakun Huang-MSFT 7,430 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

ASP.NET Gridview Header column not freezing properly

I'm using gridview with freezing header in ASP.NET application. But, freezing is not showing while running the application. what is the issue in the below code...? <%@ Page Language="C#" AutoEventWireup="true"…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,541 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.
11,112 questions
asked 2024-11-19T09:44:51.4+00:00
BeUnique 2,232 Reputation points
commented 2024-11-27T01:20:51.5966667+00:00
Jalpa Panchal-MSFT 705 Reputation points Microsoft Vendor
1 answer

stripe not working.NullReferenceExceptionObject reference not set to an instance of an object

Hi, Thanks for the help. However, My stripe is not loading. Any help. There is an error: Object not set to an instance of an object. Github Link:https://github.com/Thibaut501/Mango Awaiting your reply, Best Regards, Fabrice

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.
11,112 questions
asked 2024-11-18T05:47:17.8866667+00:00
Thibaut Fabrice 20 Reputation points
commented 2024-11-27T01:15:18.0666667+00:00
Hongrui Yu-MSFT 3,165 Reputation points Microsoft Vendor
1 answer

how do I export C# datatable to Excel 365

I have been using the following code to export a dataTable to Excel. I now have users that have upgraded to Microsoft 365 and this no longer works. My research to make the export work to Excel 365 is not panning out. any help would be grateful public…

Microsoft 365
Microsoft 365
Formerly Office 365, is a line of subscription services offered by Microsoft which adds to and includes the Microsoft Office product line.
5,277 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.
11,112 questions
asked 2024-11-23T05:08:06.78+00:00
Dave Hampel 0 Reputation points
commented 2024-11-26T21:18:46.1833333+00:00
Karen Payne MVP 35,456 Reputation points
1 answer One of the answers was accepted by the question author.

How to Remove Sequence Elements from JSON Output

Hello all, I am using the following code: private class ArrayTest { public int Count { get; set; } public double Time { get; set; } } public async Task<IActionResult> Get24HourLogonsById(int id, CancellationToken token) { ... var result…

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.
11,112 questions
asked 2024-11-26T06:38:38.61+00:00
muttBunch 120 Reputation points
accepted 2024-11-26T19:19:41.0833333+00:00
muttBunch 120 Reputation points