10,419 questions with C#-related tags

Sort by: Updated
3 answers

How to insert new,update, delete existing record in single row of gridview

I am developing ASP.NET application and i am using gridview in that. Here, i am not using any textbox controls outside of the gridview to save the record. everything i want to maintain in same row of the records. for example, when page load, if any…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,330 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,419 questions
asked 2024-05-28T14:36:20.12+00:00
Gani_tpt 1,806 Reputation points
commented 2024-06-01T18:27:23.6266667+00:00
Albert Kallal 4,971 Reputation points
3 answers

How to build screen recorder Winform GUI app which also records the sound of system at the same time

using System; using System.Diagnostics; using System.Drawing; using System.Windows.Forms; using NAudio.Wave; using SharpAvi; using SharpAvi.Codecs; using SharpAvi.Output; namespace ScreenAudioRecorder { public partial class Form1 : Form { …

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,419 questions
asked 2024-05-27T15:21:50.9433333+00:00
Rahmatulloh 0 Reputation points
commented 2024-06-01T16:48:00.1033333+00:00
KOZ6.0 5,375 Reputation points
3 answers

ResetPassword in .net core web api

Hi, I'm currently working on a .NET core web API project and writing ResetPassword. The user wrote the email and front-end sent it to my ForgotPassword Endpoint, I checked the database and send the url with email and token in it to the user's email. This…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,254 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,419 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.
309 questions
asked 2024-05-31T18:45:26.5333333+00:00
Atilla Rüstəmli 0 Reputation points
edited a comment 2024-06-01T16:21:17.11+00:00
Bruce (SqlWork.com) 58,356 Reputation points
1 answer One of the answers was accepted by the question author.

How can I set the application file description in .NET 8?

Hi, I'm building an application in .NET 8 and I can't find the option to set the exe file description, the one displayed in Task Manager as the application name. I was able to do it in .NET Framework, but now it just displays the exe file name (assembly…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,724 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,419 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,134 questions
asked 2024-06-01T15:41:05.07+00:00
Alessandro Guizzetti 0 Reputation points
accepted 2024-06-01T16:19:09.7333333+00:00
Alessandro Guizzetti 0 Reputation points
0 answers

System.Reflection.TargetInvocationException: "Expression 'dest => dest' must resolve to top-level member" when configuring AutoMapper profile

I'm encountering an exception when trying to configure AutoMapper in my ASP.NET Core application. The exception message is: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. --->…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
707 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,481 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,254 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,419 questions
asked 2024-06-01T08:50:47.3466667+00:00
Julia Ohorodnichuk 0 Reputation points
1 answer

How to assign value from session upload file into upload posted file again

i am trying to save uploaded file after some big process. i am saving uploaded file in session to retain the file upload data. i.e : uploaded file will be saving into session variable. after saving to session upload file will be cleared. but, the upload…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,330 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,419 questions
asked 2024-05-31T18:44:51.0666667+00:00
Gani_tpt 1,806 Reputation points
edited a comment 2024-06-01T03:47:27.71+00:00
Gani_tpt 1,806 Reputation points
1 answer

VirtualizingStackPanel Scrollviewer height

I am working a uwp app where i used ListView with VirtualizingStackPanel . In my case i am trying create an alternatives for CVS ListView so each item has a ItemsControl (choosen this because it consume less memory and ScrollViewer). Now if i want…

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,419 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.
773 questions
asked 2024-05-22T06:12:58.1066667+00:00
shriram 90 Reputation points
commented 2024-06-01T02:22:29.8066667+00:00
shriram 90 Reputation points
1 answer One of the answers was accepted by the question author.

How to migrate the FCM v1 in xamarin forms apps as xamarin got migrated

Hey Team, We got a mail from Firebase team that legacy http is going to be deprecated . When i checked in the documentation, all i could find is xamarin is not supporting FCM v1. We have azure notification hubs common library for android and iOS and…

Azure Notification Hubs
Azure Notification Hubs
An Azure service that is used to send push notifications to all major platforms from the cloud or on-premises environments.
275 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,305 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,020 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,724 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,419 questions
asked 2024-05-16T03:05:07.0633333+00:00
Sri Gayathri Gopalakrishnan 35 Reputation points
commented 2024-05-31T18:52:43.0033333+00:00
Michal Dobrodenka 1 Reputation point
1 answer

How to make readonly in Gridview textbox calendar controls in Footer Template

I am developing web based application. i used gridview and it contains Footer Template for input entry. almost i done all the functionality. but, for the validation especially for footer template i need help to solve this. how to make readonly gridview…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,330 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,419 questions
asked 2024-05-31T12:18:46.3566667+00:00
Gani_tpt 1,806 Reputation points
commented 2024-05-31T18:01:34.79+00:00
AgaveJoe 26,251 Reputation points
1 answer

How to maintain Ajax calendar values after postback in Gridview Footer

I am using AJAX control textbox in gridview. Inside the gridview, Footer Template i am using dropdown control and many textboxes. after selecting of Ajax calendar control, if i select dropdown, the ajax value getting cleared. How to maintain the date…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,330 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,419 questions
asked 2024-05-29T15:22:30.55+00:00
Gani_tpt 1,806 Reputation points
commented 2024-05-31T17:37:05.68+00:00
AgaveJoe 26,251 Reputation points
0 answers

Microsoft.Web/serverfarms (BadGateway error) in Azure Web App service deployment

{ "status": "Failed", "error": { "code": "Forbidden", "message": "The subscription '5c793fb4-62d4-4c5b-a17a-07fc43a67282' is not allowed to create or update the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,481 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,254 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,435 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,419 questions
asked 2024-05-31T15:10:39.8633333+00:00
Muhammad Ali 0 Reputation points
edited the question 2024-05-31T15:12:03.5266667+00:00
Muhammad Ali 0 Reputation points
3 answers

Console app referencing excel interop RCW

Using VS2022 and Net 8 to make a console app referencing excel interop RCW. On my development machine this interop file is version 16 (MS 365) and works just fine, however on another machine with same OS, same dotnet runtime (runtime shouldn't matter as…

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,554 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,419 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,599 questions
asked 2024-05-15T21:34:05.65+00:00
Magne 126 Reputation points
accepted 2024-05-31T11:09:35.9333333+00:00
Magne 126 Reputation points
0 answers

System.IO.Ports only availble on windows, but im using windows - .NET6

So i'm trying to read arduino serial from c#, but it shows me the folowing exeption when i try to open the port: System.PlatformNotSupportedException: 'System.IO.Ports is currently only supported on Windows I am currently using windows 11. Also i tried…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,481 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,419 questions
asked 2024-03-17T16:58:29.7233333+00:00
Borda Ákos 10 Reputation points
commented 2024-05-31T10:00:38.2566667+00:00
Sam Bartle 0 Reputation points
2 answers

how to show progress bar while save data into files in c#?

I have a winform app. in this form I put a button. this button open a file dialog user select multi files and then it convert all those files.I want to show progress bar after the user select the files.show percent and after all files finished then it…

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,419 questions
asked 2024-05-31T05:20:47.42+00:00
Farshad Valizade 381 Reputation points
commented 2024-05-31T08:18:41.8266667+00:00
RLWA32 41,456 Reputation points
3 answers

Query is too complex.

Hello To delete many selected records at once: In a loop I populate question marks: QuestionMarks = QuestionMarks + "?, " Then: "DELETE FROM table WHERE theID = ? AND fld IN (" + QuestionMarks + ")" And: For Each MyRow As…

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,419 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,612 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.
837 questions
asked 2024-05-24T08:22:33.26+00:00
StewartBW 565 Reputation points
commented 2024-05-31T05:48:41.7633333+00:00
Jiachen Li-MSFT 27,406 Reputation points Microsoft Vendor
1 answer

Select from table

Hello Using Access mdb with OleDbRader (Access Database Engine) to select all: "SELECT * FROM tabke WHERE clmn = 'blah'" This might return 100 items, how can I use select to read from number 5 to 50, for example? Possible? Thank you all

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,419 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,612 questions
asked 2024-05-24T00:46:41.91+00:00
StewartBW 565 Reputation points
commented 2024-05-31T05:48:12.15+00:00
Jiachen Li-MSFT 27,406 Reputation points Microsoft Vendor
1 answer

Rendering issues with our .Net application post windows patch

Recently, we've encountered rendering issues with our .NET application following a Windows patch update for Windows 10 Version 22H2. Specifically, after applying the cumulative update for .NET Framework 3.5, 4.8, and 4.8.1, we've noticed intermittent…

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,419 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,134 questions
asked 2024-05-16T16:21:59.7033333+00:00
SusanA 0 Reputation points
edited a comment 2024-05-31T05:19:23.6666667+00:00
Jiachen Li-MSFT 27,406 Reputation points Microsoft Vendor
1 answer

How to fix build errors that I am getting currently when I convert my .NET MAUI [ sdk 6 version] to .NET 8 version?

I am currently in a process of converting my MAUI project which is in .NET 6 version to .NET 8 version. I have used Microsoft's .NET upgrade assistant extension tool for the same. After successful upgrade, when I try to build/rebuild my project, I am…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,481 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,012 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,419 questions
asked 2024-05-29T07:24:16.99+00:00
Suhas MR 0 Reputation points
commented 2024-05-31T03:10:10.0533333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 27,276 Reputation points Microsoft Vendor
0 answers

sourcelink switch is only supported when emitting PDB

When I am trying to build Xamarin.Android project in Azure Devops Pipeline, I am getting below errors sourcelink switch is only supported when emitting PDB embed switch is only supported when emitting a PDB Can anyone please help me to solve this

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,305 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,419 questions
asked 2024-05-30T10:55:57.1433333+00:00
Sk 61 Reputation points
commented 2024-05-31T03:04:18.7833333+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 37,191 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

Datatime value issue

Hi, How to correct it below? tb_apply_date.Text = Datetime.Now.ToString();

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,724 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,419 questions
asked 2024-05-30T08:28:23.0166667+00:00
Peter_1985 2,586 Reputation points
accepted 2024-05-31T03:03:42.38+00:00
Peter_1985 2,586 Reputation points