Microsoft Q&A

.NET

21,528 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

21,528 questions with .NET-related tags

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

Create a MAUI application that lives in the system tray (Windows)

Hi, We want to create an application that essentially lives in the system tray. When a user wants to do something, they right-click on the icon, choose what they want to do from the context menu of system tray, and that starts the GUI with the choice…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,075 questions
asked 2023-03-08T05:03:30.4633333+00:00
Sanket Vinod Solanki 25 Reputation points
commented 2023-11-19T04:12:18.0033333+00:00
Sanket Vinod Solanki 25 Reputation points
0 answers

Upload a file to https://graph.microsoft.com/v1.0/sites/xxx.sharepoint.com/xxx/folder

Hi, I am trying to upload the file from .net7 app to sharepoint site https://graph.microsoft.com/v1.0/sites/xxx.sharepoint.com/xxx/folder. I am not sure how to do that. I did this following authentication process and after this how can I get to the…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,710 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,724 questions
Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
8,932 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,244 questions
SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
8,462 questions
asked 2023-11-19T03:36:57.04+00:00
Netra Jyothi 0 Reputation points
2 answers

Button Foreground not changing when content is Textblock

Hi All, I have a button in XAML with content Textblock control. I am trying to change the foreground and background of button when it is disabled inside trigger. The background of button is getting changed by trigger when it is disabled but not…

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,542 questions
asked 2023-11-18T07:04:40.56+00:00
Pratham Jain 201 Reputation points
commented 2023-11-19T02:39:58.5066667+00:00
gekka 2,151 Reputation points MVP
2 answers

Need advice on best ASP.NET engine for personal website

I had rich experience with classic ASP.NET WebForms engine. But since then I worked on other technologies for many years. Now it seems there are several engines for building web applications: MVC, Razor and Blazor and maybe I am missing something else. I…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,724 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,710 questions
asked 2023-11-18T15:43:51.72+00:00
Neo 381 Reputation points
answered 2023-11-19T01:02:00.39+00:00
SurferOnWww 1,296 Reputation points
0 answers

How to upgrade Maui from .NET 7.0 to 8.0

Can someone please explain the secret to upgrading in Maui? XF, although painful, had a workflow that I could get the solution to move up, but with Maui, it is oddly even harder now. I can't seem to select 8.0 from 7.0 on the property page because to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,075 questions
asked 2023-11-18T21:57:15.1533333+00:00
David Friedel 6 Reputation points
edited the question 2023-11-18T22:00:19.8833333+00:00
David Friedel 6 Reputation points
0 answers

Execute SSIS Packages Error

I Have mvc dotnet app that execute SSIS Package by calling Process in function and call DTExec.exe to execute the packages locally , i want to execute this packages remotely by ConnectionString because this packages in another server i searched and…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
1,042 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,299 questions
asked 2023-11-18T13:06:07.93+00:00
Omar Y Aly 0 Reputation points
edited a comment 2023-11-18T21:48:08.94+00:00
AgaveJoe 1,250 Reputation points
1 answer

About "Use non-routable components in pages or views"

Excuse me, i use ASP.Net Core MVC then i use Blazor as component for user interface. Which mean for route using controller in MVC feature and user interface using Blazor component. .Net 8 has released. So i have intents to use feature "Interactive…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,724 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,177 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
1,042 questions
asked 2023-11-17T10:18:26.3966667+00:00
Akhmad Hamzah S 0 Reputation points
edited a comment 2023-11-18T19:44:17.81+00:00
Bruce (SqlWork.com) 47,516 Reputation points
1 answer

Download sqllite db from MAUI Blazor App

Here is a MAUI App that uses SQLLite , https://github.com/KalyanAllam/SQLiteDemoWithBlazorApp/ private async void SetUpDb() { if (_dbConnection == null) { string dbPath =…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,075 questions
asked 2023-11-18T17:09:33.68+00:00
Kalyan A 200 Reputation points
edited an answer 2023-11-18T19:13:38.1566667+00:00
Bruce (SqlWork.com) 47,516 Reputation points
10 answers

I can't find ASP.NET Web Application (.NET Framework) with c#

Hello I want to use ASP.NET Web Application (.NET Framework), and I have downloaded Visual Studio Community 2019 v16.11.3, and i have clicked the ASP.NET and web devleopment before i download it but I can't find the one i needed, I don't want the…

ASP.NET Web Forms
ASP.NET Web Forms
A part of the ASP.NET web application framework that can be used to create ASP.NET web applications.
647 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,710 questions
asked 2021-10-01T00:33:18.083+00:00
WEI HAN TAN 26 Reputation points
commented 2023-11-18T17:06:44.5233333+00:00
Bryan Schmiedeler 0 Reputation points
1 answer One of the answers was accepted by the question author.

How to setup a Splash Screen when an Android Maui App is started by an external app?

I have a working app which I am now enhancing it by making it a Sharing Target. Consider that I am sending a simple text data such as a website link to my app. For this, I have added an Intent Filter as shown in the code below. Everything works as…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,075 questions
asked 2023-11-16T18:24:10.2833333+00:00
dg2k 1,361 Reputation points
accepted 2023-11-18T16:33:04.65+00:00
dg2k 1,361 Reputation points
0 answers

When will .NET Core 8 web apps run on Azure?

I'm testing out .NET Core 8 and trying to deploy to Azure. I created a new Blazor web app in Visual Studio. I go to publish the app, creating a new Azure Web App. Once published, I see "HTTP Error 500.31 - ANCM Failed to Find Native…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,724 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
5,958 questions
asked 2023-11-18T15:52:06.42+00:00
Aaron Smith 0 Reputation points
edited the question 2023-11-18T15:53:35.23+00:00
Aaron Smith 0 Reputation points
1 answer One of the answers was accepted by the question author.

getting both Text and value of a drop down list

I have the following Model: using System.ComponentModel.DataAnnotations; namespace EmployeeRecognition.Models { public class Sections { [Key] public int SectionId { get; set; } public string SectionName { get; set; } …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,724 questions
asked 2023-11-16T23:08:54.4166667+00:00
Anjali Agarwal 1,201 Reputation points
accepted 2023-11-18T12:58:04.04+00:00
Anjali Agarwal 1,201 Reputation points
0 answers

Clears text only when got focus

private static void Txb_GotFocus(object sender, EventArgs e) { var txb = (TextBox)sender; var intfc = (ICustomTextBox)sender; if (txb.Parent != null) { OriginalBackColors[txb] =…

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.
9,356 questions
Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,716 questions
asked 2023-11-17T14:20:26.04+00:00
Pankaj tripathi 45 Reputation points
edited a comment 2023-11-18T12:51:47.5533333+00:00
Pankaj tripathi 45 Reputation points
0 answers

.NET MAUI ListView binding freezing entire application for a while.

Hello! I have a question related to ListView. My problem is that when I assign all of data through query and then trying to show all of the possible queries my application freezes for a while. Because I'm running on main thread. I would like to know…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,075 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.
9,356 questions
asked 2023-11-18T12:48:38.3833333+00:00
J0nathan550 20 Reputation points
0 answers

Maui Pipeline - Nuget Restore fails for iOS

We have a Maui-Blazor app that will be supporting iOS & Android. We are trying to setup pipeline for iOS Build, pipeline fails with Nuget Restore task. When we try using Nuget Restore Task version 1, it was restoring from…

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,177 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,075 questions
Not Monitored
Not Monitored
Tag not monitored by Microsoft.
32,252 questions
asked 2022-09-09T22:21:52.727+00:00
Ganesh Prabhu 1 Reputation point
edited a comment 2023-11-18T11:36:17.6633333+00:00
Ben 0 Reputation points
0 answers

How to Send Toaster like Notification in MAUI MAC OS Application ?

Hi, We have developed MAUI Application for Windows and MACOS, and we have Successfully implemented Toaster notification ( side pop up balloon like notifications) for Windows using…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,075 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.
9,356 questions
asked 2023-11-18T04:58:01.9166667+00:00
Sanket Vinod Solanki 25 Reputation points
commented 2023-11-18T11:25:17.3066667+00:00
Sanket Vinod Solanki 25 Reputation points
2 answers One of the answers was accepted by the question author.

How to pass in variable/object from Select into Begin statement

I have the below code which im trying to convert to its SQL equivalent: var products = dc.Products.FirstOrDefault(p=> p.id == id && p.Active); if(products !=null) { return dc.Products(p=> p.id == id && p.Active &&…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,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.
9,356 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
620 questions
Transact-SQL
Transact-SQL
A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
4,432 questions
asked 2023-11-08T14:39:11.64+00:00
Mr Edge 221 Reputation points
accepted 2023-11-18T10:43:29.56+00:00
Mr Edge 221 Reputation points
0 answers

DataContext Switching for 2 different ViewModels using Frame @Hui Lui-MSFT

Hello @Hui Liu-MSFT I have created 2 View Buttons. In View1 I am able to increment the 2 texts and can view the result. In View2, I am able to drag and drop multiple copies of TextBlock into Canvas region and can change its width and height property…

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,542 questions
asked 2023-11-17T04:13:23.8166667+00:00
saurabh alliumsepa 20 Reputation points
commented 2023-11-18T05:40:09.8966667+00:00
saurabh alliumsepa 20 Reputation points
0 answers

How to configure Auto update in MAUI application ?

Hi, Consider we have developed a MAUI application. For deployment of this MAUI application in multiple machine we created a setup file / package following this link -…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,075 questions
asked 2023-03-08T07:34:42.23+00:00
Sanket Vinod Solanki 25 Reputation points
commented 2023-11-18T04:52:55.5933333+00:00
Sanket Vinod Solanki 25 Reputation points
1 answer

Equality of UI input elements vs. database table entities

As you can see in the following image, the user interface of my app has a total of 12 text boxes (6 text boxes in each part) in the seller and buyer sections. The image below is a part of the ERD relating to this application's database; since 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,542 questions
SQL Server Analysis Services
SQL Server Analysis Services
A Microsoft online analytical data engine used in decision support and business analytics, providing the analytical data for business reports and client applications such as Power BI, Excel, Reporting Services reports, and other data visualization tools.
1,205 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.
9,356 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.
11,445 questions
asked 2023-11-17T19:08:39.74+00:00
Reza Jaferi 271 Reputation points
edited a comment 2023-11-18T02:31:57.95+00:00
Reza Jaferi 271 Reputation points