10,418 questions with C#-related tags

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

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,331 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,418 questions
asked 2024-05-31T18:44:51.0666667+00:00
Gani_tpt 1,826 Reputation points
commented 2024-06-03T11:08:11.8466667+00:00
Gani_tpt 1,826 Reputation points
0 answers

How can I trigger a method from the OrderConfirmation page in Blazor WASM?

Hi, I have a Blazor WASM Client e-commerce application where I'm showing cart counts in the NavMenu. I'm trying to call the GetCartCount() method from the OrderConfirmation razor page after payment has been completed to make the cart count zero, but I'm…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,256 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,437 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,418 questions
asked 2024-06-03T10:46:35.6966667+00:00
Cenk 956 Reputation points
1 answer One of the answers was accepted by the question author.

How to identify usage of Azure SQL Database 2014-04-01 APIs

I have a very old windows forms project using azure database and I'm very unsure if this project is affected by the API retirement. The project uses DataSets, TableAdapters and the old library Microsoft.Practices.TransientFaultHandling. Is this going to…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,857 questions
Azure SQL Database
Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
10,870 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,483 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,418 questions
asked 2023-12-05T10:46:25.9466667+00:00
Becker, W 46 Reputation points
accepted 2024-06-03T10:07:03.01+00:00
Becker, W 46 Reputation points
0 answers

Mocking objects of the library Microsoft.SqlServer.TransactSql.ScriptDom

I am currently writing the unit tests for a class using the Microsoft.SqlServer.TransactSql.ScriptDom library. I am unable write unit tests for my class as I am unable to set the properties of mocked objects as there is no setter for that property. For…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,728 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,418 questions
Visual Studio Testing
Visual Studio Testing
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Testing: The act or process of applying tests as a means of analysis or diagnosis.
333 questions
asked 2024-06-03T09:38:17.7333333+00:00
Ameen Ahmed 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.
708 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,483 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,256 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,418 questions
asked 2024-06-01T08:50:47.3466667+00:00
Julia Ohorodnichuk 0 Reputation points
commented 2024-06-03T09:34:57.7866667+00:00
Ping Ni-MSFT 2,405 Reputation points Microsoft Vendor
0 answers

root is missing error, while making frontend using window form application in VS 2022 using C#

Root is missing error, while making frontend using window form application in VS 2022 using C#. How to troubleshoot this issue.

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,857 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,728 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,418 questions
asked 2024-05-20T04:10:28.07+00:00
DevNinja 0 Reputation points
commented 2024-06-03T09:23:03.1033333+00:00
Tianyu Sun-MSFT 28,066 Reputation points Microsoft Vendor
0 answers

Mitigation for Dll hijacking

Hello Team, I found dll injection in c#, .net and c++thick client applications. But to perform dll here I needed admin access. in this case I had admin access. So what will be the standard mitigation to prevent dll injection after even get the admin…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,483 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,418 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,572 questions
asked 2024-06-03T09:12:59.99+00:00
Mashuk Raza 0 Reputation points
2 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,331 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,418 questions
asked 2024-05-28T14:36:20.12+00:00
Gani_tpt 1,826 Reputation points
commented 2024-06-03T08:56:15.8333333+00:00
Lan Huang-MSFT 26,916 Reputation points Microsoft Vendor
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,418 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-03T08:48:10.9333333+00:00
Junjie Zhu - MSFT 16,071 Reputation points Microsoft Vendor
1 answer

Copy the code text from MS Visual Studio 2022 and keeping the source color and formatting

Hello! Tools --> options --> Text Editor --> Advanced --> Copy rich text https://learn.microsoft.com/en-us/visualstudio/ide/reference/options-text-editor-advanced?view=vs-2022 Works in VS2019 well. In 2022 not. Something is missing. Does…

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,418 questions
asked 2024-05-30T07:04:13.29+00:00
Noah Aas 260 Reputation points
commented 2024-06-03T08:46:26.41+00:00
Jiale Xue - MSFT 38,931 Reputation points Microsoft Vendor
1 answer

How to customise global window closing prompt in a .NET MAUI application

I am working on a .NET MAUI project for desktop, I found a global solution for prompting a user before closing the application here. I would like to know if this can be customised and triggered conditionally when closing. For example: I have an…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,017 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,418 questions
asked 2024-05-28T08:55:28.29+00:00
Arturs Pramalts 0 Reputation points
commented 2024-06-03T07:08:10.85+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 69,921 Reputation points Microsoft Vendor
2 answers

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,331 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,418 questions
asked 2024-05-31T12:18:46.3566667+00:00
Gani_tpt 1,826 Reputation points
answered 2024-06-03T06:39:38.1533333+00:00
Lan Huang-MSFT 26,916 Reputation points Microsoft Vendor
2 answers

How to Detect Initial DPI changes in a WPF Application while Scaling according to Per Monitor Aware in Variable Dynamic Screen Resolution?

In daily life we have to deal with a lot of different types of display size it may be mobile or may be a 4k monitor. The screen resolution vary from display to display. Here another important factor is DPI (Display per inch) which is mainly a scaling…

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,884 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,690 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,418 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,572 questions
asked 2024-05-27T23:46:16.7233333+00:00
MERUN KUMAR MAITY 531 Reputation points
commented 2024-06-03T05:02:40.46+00:00
Hongrui Yu-MSFT 420 Reputation points Microsoft Vendor
2 answers One of the answers was accepted by the question author.

How to get/read specific word from pdf or image document in ASP.NET Application

I have millions of image or pdf document...I want get some specific word from the uploaded image or pdf document...after getting this, I am going to use these in my project...All this I want in asp.net application and if any third-party tools are using,…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,331 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,418 questions
asked 2024-05-26T03:09:00.3533333+00:00
Gani_tpt 1,826 Reputation points
accepted 2024-06-03T02:06:53.9166667+00:00
Gani_tpt 1,826 Reputation points
1 answer One of the answers was accepted by the question author.

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,331 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,418 questions
asked 2024-05-29T15:22:30.55+00:00
Gani_tpt 1,826 Reputation points
accepted 2024-06-03T02:04:54.6033333+00:00
Gani_tpt 1,826 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,483 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,256 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,437 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,418 questions
asked 2024-05-31T15:10:39.8633333+00:00
Muhammad Ali 0 Reputation points
commented 2024-06-03T01:51:47.7766667+00:00
JasonPan - MSFT 4,626 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,483 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,017 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,418 questions
asked 2024-05-29T07:24:16.99+00:00
Suhas MR 0 Reputation points
edited an answer 2024-06-03T01:45:41.96+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 27,356 Reputation points Microsoft Vendor
2 answers

Getting error while finding control in Footer Row Gridview

I am getting error while binding data in dropdown in gridview footer template. Pls. help us, how to bind dropdown values inside the gridview footer template. getting below error.

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,331 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,418 questions
asked 2024-05-29T13:47:28.71+00:00
Gani_tpt 1,826 Reputation points
commented 2024-06-03T01:43:14.9733333+00:00
Lan Huang-MSFT 26,916 Reputation points Microsoft Vendor
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.
276 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,306 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,008 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,728 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,418 questions
asked 2024-05-16T03:05:07.0633333+00:00
Sri Gayathri Gopalakrishnan 35 Reputation points
commented 2024-06-02T23:43:04.3233333+00:00
Sri Gayathri Gopalakrishnan 35 Reputation points
3 answers One of the answers was accepted by the question author.

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,256 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,418 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.
308 questions
asked 2024-05-31T18:45:26.5333333+00:00
Atilla Rüstəmli 20 Reputation points
accepted 2024-06-02T15:16:13.8566667+00:00
Atilla Rüstəmli 20 Reputation points