10,249 questions with C#-related tags

Sort by: Updated
3 answers

How to upload file and view those file in modal popup using gridview

I need help in gridview. i am using normal add, edit and delete functionalities in gridview. This is working fine. Initially i am saving the records using textbox controls and save button. This contains including file upload also. After saving the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,255 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,249 questions
asked 2024-04-17T14:56:04.6833333+00:00
Gani_tpt 1,506 Reputation points
commented 2024-04-22T06:51:11.5666667+00:00
Lan Huang-MSFT 25,556 Reputation points Microsoft Vendor
1 answer

Report Viewer (.rdlc) print dialog box save to pdf option download file with different name in Firefox.

Hi Team, using ASP.Net web application report viewer page,Report Viewer (.rdlc) print dialog box save to pdf option download file with different name in Firefox. Thanks, Shaik Masthan Babu.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,255 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,799 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,249 questions
asked 2024-04-18T08:23:45.3966667+00:00
Shaik Babu 0 Reputation points
answered 2024-04-22T05:35:37.4566667+00:00
Shaik Babu 0 Reputation points
2 answers

How to design patterns from scratch using C# asp.net MVC

I am new to building design pattern using factory design pattern, its C# asp.net mvc application which i am going developing my new web application, please can you help me how to start from scratch. I have worked one design pattern application which is…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,255 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,249 questions
asked 2024-04-19T14:27:10.4633333+00:00
coder rock 196 Reputation points
answered 2024-04-22T03:12:16.71+00:00
Lan Huang-MSFT 25,556 Reputation points Microsoft Vendor
2 answers

C# class question

Hi,  I have three schemas in my database accordingly CustomerA, CustomerB,Common. The CustomerA, CustomerB schemas will have same set of tables. the reason to have like two separate tables to provide the data privacy b/w customers and each schema will be…

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,249 questions
asked 2024-04-15T21:38:27.1033333+00:00
Born2Achieve 21 Reputation points
commented 2024-04-22T02:25:25.0366667+00:00
Jiale Xue - MSFT 31,976 Reputation points Microsoft Vendor
0 answers

Calendar scheduling using Metro Framework in c#

Good day to all Master, I am new making scheduling calendar look like this. I don't have any experience of this, now I want is to select multiple day. you can free download the source code of my…

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,249 questions
asked 2024-04-20T02:12:27.12+00:00
Jay-R Hayashi 206 Reputation points
commented 2024-04-22T02:21:05.4+00:00
Jiale Xue - MSFT 31,976 Reputation points Microsoft Vendor
2 answers

System.ObjectDisposedException: 'Cannot access a disposed object. ObjectDisposed_ObjectName_Name', al momento de guardar mi lista de imagenes

My View in vue.js sends me the image arrangement to my api, which I want to save in a folder asynchronously and when I do the second round in my foreach to the second image it gives me the error. foreach (var imagen in imagenes) { ImagenesProducto…

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,249 questions
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.
297 questions
asked 2024-04-09T19:43:43.2266667+00:00
Andrea Evelyn Mejia Rubio 0 Reputation points
answered 2024-04-21T15:24:05.29+00:00
Bruce (SqlWork.com) 56,026 Reputation points
3 answers

could not load file or assembly'Microsoft.data.sqlclient'

how to solve this error

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,255 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,607 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.
12,715 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,249 questions
asked 2023-09-12T17:01:47.29+00:00
Niyati Savaliya 0 Reputation points
commented 2024-04-21T14:41:24.4433333+00:00
Malcolm Fellmann 5 Reputation points
2 answers One of the answers was accepted by the question author.

How to get assignedLicenses from Microsoft Graph

Hi, I am using a C# program to retrieve user information from Microsoft Graph. Currently I am passing the following URL to get the information I need. https://graph.microsoft.com/v1.0/users?$filter=accountEnabled eq true&$select=displayName,id I want…

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,592 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,249 questions
asked 2024-04-19T18:47:55.8666667+00:00
Robin 66 Reputation points
commented 2024-04-21T08:43:27.0233333+00:00
Robin 66 Reputation points
2 answers One of the answers was accepted by the question author.

Recognize whether the user is logged in

In Windows 10 and Windows 11, apps that are started automatically at startup are already started before the user has logged in. In Windows 8.1, such automatically launched apps were only started after the user had logged in. At least this is the case on…

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,672 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,422 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,249 questions
asked 2024-04-18T15:03:37.3466667+00:00
Heiko 1,211 Reputation points
accepted 2024-04-20T12:52:14.77+00:00
Heiko 1,211 Reputation points
3 answers

Can you recommend a PDF creation library in C#?

I'm about to start a new project and i will need to generate PDF files from C# code, what libraries do you recommend ?

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,249 questions
asked 2021-09-30T13:08:48.373+00:00
Mafiev Dev 1 Reputation point
commented 2024-04-20T04:22:17.71+00:00
peter floyd 0 Reputation points
1 answer One of the answers was accepted by the question author.

Permutations Array?

Good day all Master! please help me to fix my problem. This problem is a permutations process. If I click button OK it well shuffle and this display in the listBox1. Please take look the picture below. at this image as you can see it's do permutations…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 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,249 questions
asked 2024-03-09T02:28:32.5766667+00:00
Jay-R Hayashi 206 Reputation points
commented 2024-04-20T02:14:51.2366667+00:00
Jay-R Hayashi 206 Reputation points
1 answer One of the answers was accepted by the question author.

Is it possible to create and set styles and/or template for combobox in c# only?

Hi, I'm trying to setup a app frontend in C# only. I'm more practiced with c# then XAML, but also have the feeling that I can make the app windows/pages more parametric in this way. Thus far I'm succeeding in this, however when I tried setting up…

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,672 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,249 questions
asked 2024-04-12T14:03:37.46+00:00
Reinder Weenink 20 Reputation points
commented 2024-04-19T19:37:26.1033333+00:00
Reinder Weenink 20 Reputation points
1 answer

Azure Functions - Logging not working correctly in local

I have a simple dotnet-isolated Azure function written in .Net 8 which has 1 Http trigger function. I have another custom database logger which is added to this function to enable database logging. When I am executing the function, none of the Microsoft…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,265 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,249 questions
asked 2024-04-17T14:04:02.69+00:00
Singh, Rahul 1 Reputation point
commented 2024-04-19T19:29:24.5733333+00:00
Singh, Rahul 1 Reputation point
0 answers

How to fix .NET Runtime version 4.0.30319.0 - Loading profiler failed during CoCreateInstance Error.

Hello, I am seeing this error in the event logs: .NET Runtime version 4.0.30319.0 - Loading profiler failed during CoCreateInstance. Profiler CLSID: '{2EB6DCDB-3250-4D7F-AA42-41B1B84113ED}'. HRESULT: 0x80040154. Process ID (decimal): 28340. Message…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,376 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,249 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,527 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,119 questions
asked 2023-06-28T08:04:35.5566667+00:00
Bhushan Mendhe 0 Reputation points
edited a comment 2024-04-19T11:02:01.07+00:00
Mike Gledhill 0 Reputation points
2 answers

How I get 300 DPI with 648 X 1016 Using SKBitmap

I am trying to PNG image to BMP image via using SKBitmap, the BMP image not set in 300 DPI why? below i mentioned my code, if there is any mistakes please correct my code using (SKBitmap pngBitmap = SKBitmap.Decode(inputFilePath)) { …

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.
10,249 questions
asked 2024-04-16T07:17:48.06+00:00
Saranya Karthik 40 Reputation points
commented 2024-04-19T10:07:37.5233333+00:00
Junjie Zhu - MSFT 14,831 Reputation points Microsoft Vendor
1 answer

OpenXML Error when creating new WorksheetPart on deployed dll

So first off, my code works in a console application. I installed OpenXML via NuGet into the solution. I created a new solution that is a .NET dll library and installed openXML the same way and deployed the dll with the OpenXML dlls and when my dll is…

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,249 questions
asked 2024-04-07T16:11:25.71+00:00
Mike Gerbi 0 Reputation points
edited a comment 2024-04-19T09:42:33.86+00:00
Jiale Xue - MSFT 31,976 Reputation points Microsoft Vendor
1 answer

Why Dataset is empty?

Dear all, I am a beginner in C#. Can you please guide me on how to use parameters? I am not sure why ds.Table[0] is underlined in red. Could you please assist me in resolving this issue ?

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,249 questions
asked 2024-04-09T09:53:11.9466667+00:00
BenTam 1,561 Reputation points
commented 2024-04-19T09:41:44.7133333+00:00
Jiale Xue - MSFT 31,976 Reputation points Microsoft Vendor
3 answers

Working with Access database via OleDbReader

Hey all I have no problem when all my access mdb are string! I'm using Access database engine 2010 to connect to mdb. The problem occurs when I have Boolean / Integer / Date fields: New OleDbCommand("INSERT INTO tableblah (strfield, intfield,…

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,249 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,571 questions
Access Development
Access Development
Access: A family of Microsoft relational database management systems designed for ease of use.Development: The process of researching, productizing, and refining new or existing technologies.
821 questions
asked 2024-04-01T16:00:49.7066667+00:00
StewartBW 265 Reputation points
commented 2024-04-19T09:41:12.49+00:00
Jiale Xue - MSFT 31,976 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Serializing a list of objects

Hello people! I have a structure of the form: public class MasterFiles { public GeneralLedgerAccounts GeneralLedgerAccounts { get; set; } public Customers Customers { get; set; } public Suppliers Suppliers { get; set; } public TaxTable…

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,249 questions
asked 2024-04-18T09:03:26.0133333+00:00
TRAIAN MACAVEIU 91 Reputation points
accepted 2024-04-19T08:40:30.6966667+00:00
TRAIAN MACAVEIU 91 Reputation points
1 answer

The problem with the MediaElement in WPF .NET 8.0 not supporting relative paths for the media source,Why?

Hi, I'm attempting to utilize the MediaElement in WPF to play video files with either .mp4 or .wmv extensions. However, I've encountered issues when passing the source as a relative path or a Pack URI. Strangely, it works fine when I provide an absolute…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,619 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
4,748 questions
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,672 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,249 questions
asked 2024-04-08T08:17:36.1833333+00:00
Sanjay Kumar Jha 151 Reputation points
commented 2024-04-19T07:02:29.0633333+00:00
Sanjay Kumar Jha 151 Reputation points