Microsoft Q&A

.NET

20,625 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,625 questions with .NET-related tags

Sort by: Updated
0 answers

Failing to save and display Save and display Images from sql Table in ASP .Net

I am creating a web application in ASP .Net, and I want to save and display pictures from an SQL table. I need help

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,634 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.
10,933 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
986 questions
asked 2023-09-25T11:44:47.3533333+00:00
Lumbo Chenge bin 20 Reputation points
commented 2023-09-25T12:00:14.1266667+00:00
Olaf Helper 33,836 Reputation points
2 answers

ComboBox Control how to define MaxLength of input Text

Hi, a client asked me a change. I have an app with several STANDARD ComboBoxes Control. Until this morning they were all defined with IsEditable="False". Now I have to give the possibility to the user to input a value even if it is not in the…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,047 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,476 questions
asked 2023-09-08T12:51:39.2933333+00:00
Dimitri Garmaise 291 Reputation points
commented 2023-09-25T11:58:02.8066667+00:00
Dimitri Garmaise 291 Reputation points
1 answer

how to use script files in blazor project inside index.html?

I have a blazor webassemly project , I want to use javascript files , I put them in wwwroot folder and call them in index.html by thos way <script src="/js/bracket.js"></script> I am sure the path is correct but also not working…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,047 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 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,105 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.
8,969 questions
asked 2023-09-25T07:15:58.0533333+00:00
Haneen Al-fakhry 0 Reputation points
answered 2023-09-25T11:20:48.1333333+00:00
JasonPan - MSFT 2,456 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

duplicate request method names in .net proxy class + BizTalk

we have XSD published as service in BizTalk, the end point is getting called by .net technology . When .net team try to consume the service using add service reference it creates the service.cs class library which has all the classes and methods for the…

Microsoft BizTalk Server
Microsoft BizTalk Server
A family of Microsoft server products that support large-scale implementation management of enterprise application integration processes.
326 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,047 questions
asked 2023-09-22T17:41:31.92+00:00
bala gangadhar vallapu 21 Reputation points
commented 2023-09-25T10:54:54.1233333+00:00
bala gangadhar vallapu 21 Reputation points
0 answers

c# Graph Api > 5..0.15 Content.GetAsync() not working any more

// https://learn.microsoft.com/en-us/answers/questions/1025116/how-to-download-a-mail-graph-api-c?orderby=oldest Stream mimeContentStream = await _graphClient.Users[{someUseriD}].Messages[{aMessageId}].Content.GetAsync(); string mailFile =…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,047 questions
Microsoft Graph Mail API
Microsoft Graph Mail API
A Microsoft API that supports accessing data in users' primary mailboxes and in shared mailboxes.
902 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.
8,969 questions
asked 2023-08-11T09:45:01.1066667+00:00
Uwe Schöneis 10 Reputation points
commented 2023-09-25T10:51:27.7166667+00:00
jcq 1 Reputation point
1 answer

Strategies for Implementing CI/CD Pipelines in .NET Projects?

I am looking to set up Continuous Integration and Continuous Deployment (CI/CD) pipelines for my .NET projects. What are the recommended tools, strategies, and best practices for implementing CI/CD in .NET development?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,047 questions
asked 2023-09-23T16:15:15.08+00:00
Bruce Barker 0 Reputation points
edited the question 2023-09-25T10:39:37.28+00:00
MayankBargali-MSFT 60,881 Reputation points
1 answer

How can I create a Complex View Like this one in WPF DataGridView C#?

I created this Example and Tried to make it as Simple as Possible so that you can Understand Clearly. I have SQL Server Database Named EmployeesDB that contains 4 Tables as following: 1.       Employees Table which is the Parent Table in this Example. 2.…

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,476 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,777 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.
10,933 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.
8,969 questions
asked 2023-09-20T09:04:32.94+00:00
Mesh Ka 140 Reputation points
commented 2023-09-25T10:33:01.5766667+00:00
Mesh Ka 140 Reputation points
0 answers

ASP.NET CORE <> JWT

Capturepostman.JPG Capturebearer.JPG I added JWT Authentication using The Auth Controller C:\Users\allam\source\repos\VisitsApi\VisitsApi\Controllers\AuthController.cs Returns a Token . The call to https://localhost:7070/api/Visits fails even I pass…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 questions
asked 2023-09-25T07:01:43.4466667+00:00
Dotnet Engineer 260 Reputation points
edited the question 2023-09-25T10:30:06.69+00:00
Dotnet Engineer 260 Reputation points
2 answers

How to get an azure ad registered app token in a Blazor webassembly

Hi everybody, I try to get a token from an azure AD registered app using MSAL in a blazor webassembly. I have the tenant_id, the client_id and the scope from my registered app and want to get a token. I try to use…

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
16,558 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,105 questions
asked 2023-09-07T13:13:25.6066667+00:00
Pierre Gourven 41 Reputation points
commented 2023-09-25T10:10:48.76+00:00
Pierre Gourven 41 Reputation points
0 answers

.NET MAUI Blazor POS App Freezing Issue when Using Physical Barcode Scanner on Android

I'm working on a Point of Sale (POS) application using .NET MAUI and Blazor, specifically targeting Android devices. Everything has been going well so far, but I've encountered a frustrating issue that's got me stumped. Whenever I connect or disconnect a…

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,105 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,848 questions
asked 2023-09-25T10:06:55.7933333+00:00
Lasitha Lankajeewa 0 Reputation points
edited the question 2023-09-25T10:10:43.3833333+00:00
Lasitha Lankajeewa 0 Reputation points
0 answers

How to bind Command in ContextMenuItem

Thanks to @Hui Liu-MSFT and @Peter Fleischer (former MVP) ,now I am able to operate my TreeView and do Drag&Drop on it. Also I can ONLY display ContextMenu by right click on the first level of TreeViewItem, which is required. You can see the…

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,476 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.
8,969 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.
688 questions
asked 2023-09-25T10:08:05.2533333+00:00
BabyHai 41 Reputation points
1 answer

Continue to running the application in the background?

Hello, I need my app to run in the background as my app keeps track of a workout's total time once it starts, when the user completes a set in the exercise, it has a timer that countdowns their rest time, say 30 seconds or so, when that is completed it…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,848 questions
asked 2023-09-24T17:48:06.5066667+00:00
Justin Sinnard 0 Reputation points
answered 2023-09-25T10:04:11.45+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,331 Reputation points Microsoft Vendor
1 answer One of the answers was accepted by the question author.

How to use Toast notifications in Windows App SDK 1.4?

I want to use Toast notifications in Windows App SDK 1.4 (below) but I don't know how to create them, most of the tutorial codes I've seen on the internet are not the same, and although they all work, they have the same feature: "Creates a new…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,047 questions
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.
601 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.
8,969 questions
asked 2023-09-25T08:52:17.4633333+00:00
Starcloudsea 20 Reputation points
accepted 2023-09-25T10:00:29.5566667+00:00
Starcloudsea 20 Reputation points
1 answer

ASP.NET Core MVC: Unable to set focus on input element on view load

I am trying to set focus using javascript on the first unfocused input element of MVC view in a load window event listener. But element is focused only after page reloading. Attached browser - MS Edge I tried reloading the page programmatically using…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,559 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
689 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
986 questions
asked 2023-09-24T21:57:19.01+00:00
Stanislav Panferov 45 Reputation points
commented 2023-09-25T09:59:01.56+00:00
Qing Guo - MSFT 551 Reputation points Microsoft Vendor
0 answers

Is there some way to get VS 2022 to stop closing my Maui app with no reason/no error in VS?

The last few days I am getting VS closing my app in the Android emulator for no apparent reason. If I plug in my phone and do testing from there I don't get the problem. I have gone thru the horrible process of trying to re-init the emulator but it…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,777 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,848 questions
asked 2023-09-23T20:36:49.8033333+00:00
Lloyd Sheen 1,191 Reputation points
commented 2023-09-25T09:32:10.89+00:00
Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 21,196 Reputation points Microsoft Vendor
0 answers

How i can retrieve youtube subtitles on a MAUI project

Im trying to find a way to retrieve youtube subtitles for a MAUI project i would love to make, sofar i cant find a nuget package for this job and it seems the only way/hack to do that is this…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,848 questions
asked 2023-09-23T15:55:43.4733333+00:00
Christopher Drosos 1 Reputation point
commented 2023-09-25T09:31:09.88+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 53,756 Reputation points Microsoft Vendor
0 answers

How do click events get introduced into the hierarchy in UWP (or Maui in general)? What function puts them in?

I am attempting to design my own click management system based on a WindowOverlay: https://github.com/dotnet/maui/tree/5e77c2a28a278f8e00f31d9692da2543c8086d6e/src/Core/src/WindowOverlay In Windows, this method just adds a W2DGraphicsView _graphicsView…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,047 questions
Universal Windows Platform (UWP)
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,848 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.
8,969 questions
asked 2023-09-25T08:44:27.15+00:00
M M 0 Reputation points
edited the question 2023-09-25T08:45:52.3666667+00:00
M M 0 Reputation points
2 answers

Problem in the size of the form and controls at the time of execution

I have created a form in the form of image 1, but at the time of execution, the distance between the controls increases and the size of the form also increases. What is the problem? Image 2 is at runtime. I have also used TableLayoutPanel to place the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,628 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.
8,969 questions
asked 2023-09-11T10:17:47.9166667+00:00
Mohammad Hasan Salmanian 45 Reputation points
commented 2023-09-25T08:36:15.0733333+00:00
Mohammad Hasan Salmanian 45 Reputation points
3 answers One of the answers was accepted by the question author.

How to use Scaffold-DbContext in .NET Core for Sqlite database

I'm using .NET Core Version 7 and I want to use EF Core to access a Sqlite (*.db3) database file. This file has a password and I want to add the database tables to the project through database first. The scaffold-dbcontext code is as follows, but it…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
584 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.
8,969 questions
asked 2023-09-04T12:42:06.4733333+00:00
Mohammad Hasan Salmanian 45 Reputation points
edited a comment 2023-09-25T08:32:20.75+00:00
Mohammad Hasan Salmanian 45 Reputation points
1 answer

Message handler called outside of the Windows message loop. Please explain.

Initial conditions: Simple Windows Forms application (c#, .NET 4.6.1), dialog box containing among other controls, a combo box. The combo box contains several items. On using a certain control on the dialog's surface (e.g. pressing a button), the…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,628 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,047 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.
8,969 questions
asked 2023-09-19T12:22:44.3966667+00:00
Milinovici, Gleb 0 Reputation points
commented 2023-09-25T08:17:01.1366667+00:00
Milinovici, Gleb 0 Reputation points