Microsoft Q&A

.NET

20,573 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,573 questions with .NET-related tags

Sort by: Updated
1 answer

How can I get the Material You design in my Maui app on Android?

When running my app on android, the controls are of Material design 2, while the latest is 3 - Material You. Can I in some way update the android part of the project to support the latest design?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,838 questions
asked 2023-09-22T12:15:07.9133333+00:00
Noam 0 Reputation points
answered 2023-09-23T10:44:26.0333333+00:00
Krew Noah 0 Reputation points
1 answer

In Blazor MAUI with a shared UI library, navigation doesn't work

In a shared blazor library, login page and sample page are defined. Here is the Minimum Reproducible Example: https://github.com/johnmangam/ShellNavigation/ Login.razor @page "/login" @inject NavigationManager navigationManager <button…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,838 questions
asked 2023-09-22T16:27:50.62+00:00
John Mangam 0 Reputation points
answered 2023-09-23T10:42:41.0333333+00:00
Krew Noah 0 Reputation points
1 answer

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,020 questions
asked 2023-09-22T17:41:31.92+00:00
bala gangadhar vallapu 1 Reputation point
answered 2023-09-23T10:16:07.53+00:00
Krew Noah 0 Reputation points
1 answer

.net maui fully custom splash screen

I am working on . net maui splash screen but there are android 12 and later issues. So I can not set splash screen like make image like previous android versions. But I want and set it image that has contents on all screen. I have seen many splash…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,146 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,838 questions
asked 2023-09-22T18:15:18.9866667+00:00
Haider Ali Faizi 20 Reputation points
answered 2023-09-23T10:14:20.2433333+00:00
Krew Noah 0 Reputation points
1 answer

How to display autocomplete result id on first line and name on second line and designation to third line instead of using slash ?

I work on asp.net MVC web API . I face issue when call web API using jQuery ajax request my issue is autocomplete result display separated by slash Id - Name - Designation but expected result I need to get is : Id : 121 Name : michel nicol Designation :…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
982 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.
241 questions
asked 2023-09-22T23:54:26.29+00:00
Ahmed Abd El Aziz 265 Reputation points
answered 2023-09-23T10:11:11.04+00:00
Krew Noah 0 Reputation points
3 answers One of the answers was accepted by the question author.

How to create an undetermined amount of grid columns?

Source thread: How to create an undertermined amount of grid columns?, answered by Peter Fleischer. I have a text property bound to a TextBox. For each letter in the TextBox, I want to create a gird cell with a TextBlock inside it. So if I have a six…

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,474 questions
asked 2020-02-25T02:32:13.2+00:00
Charles He-MSFT 96 Reputation points Microsoft Employee
answered 2023-09-23T10:09:17.2766667+00:00
cacasdxdd 0 Reputation points
1 answer

ASP.NET CORE WEBAPI JWT

This api https://visitsapi.azurewebsites.net/api/Visits https://github.com/KalyanAllam/VisitsApi is called in the controller Visitsnew of https://github.com/KalyanAllam/PatientPortal Now I want to make the api…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,549 questions
asked 2023-09-23T04:54:58.3533333+00:00
Dotnet Engineer 240 Reputation points
answered 2023-09-23T10:07:00.7566667+00:00
Krew Noah 0 Reputation points
1 answer

How to include native GTK libraries in single-file dotnet executable?

I am trying to bundle a GT3 application into a single file dotnet executable. A minimal not working example is this: mkdir x cd x dotnet new gtkapp dotnet build dotnet publish -r win-x64 -c Release -p:PublishSingleFile=true…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,020 questions
asked 2023-09-23T06:55:41.2966667+00:00
Ivo Rogina 0 Reputation points
answered 2023-09-23T09:46:04.24+00:00
Krew Noah 0 Reputation points
1 answer

Android issue when compiling for 'deploy'

When compiling for deploy I get error (full log attached): "C:\Program Files (x86)\Android\android-sdk\platform-tools\adb" -s emulator-5554 uninstall -k "com.companyname.randoPro" The -k option uninstalls the application while…

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
3,772 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,838 questions
Microsoft Intune Android
Microsoft Intune Android
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.Android: An open-source mobile platform based on the Linux kernel, developed by Google, and maintained by the Open Handset Alliance.
164 questions
asked 2023-09-23T08:24:18.71+00:00
Eduard Kaufmann 191 Reputation points
answered 2023-09-23T09:41:19.7966667+00:00
Krew Noah 0 Reputation points
3 answers

calling REST API

I am trying to call a REST API on my local host for testing purposes. This is what I have in my controller: public class SMSController : ControllerBase { private readonly IWebHostEnvironment _webHostEnvironment; public readonly…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,549 questions
asked 2023-09-23T05:03:04.4733333+00:00
Anjali Agarwal 1,021 Reputation points
answered 2023-09-23T09:34:22.99+00:00
AgaveJoe 445 Reputation points
0 answers

Output to Blazor backend from Azure deployed AI model

Hi, We need to get the output of an AI model that runs as a managed endpoint in Azure to our Blazor backend. What is the best way to do that? Is there a way to send the output from the AI model to the Blazor backend once it is ready? If yes, how exactly…

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,078 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,102 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
1,674 questions
asked 2023-09-21T17:14:52.9166667+00:00
Héðinn Steingrímsson 0 Reputation points
edited the question 2023-09-23T09:03:24.41+00:00
tbgangav-MSFT 8,996 Reputation points
1 answer One of the answers was accepted by the question author.

Avoid repeatation of code

Hi , i have a project with 4 windows forms all of doing everything separate work . but they all a common thing in them . protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData == (Keys.F2)) …

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,626 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,958 questions
asked 2023-09-23T07:16:21.7033333+00:00
Shaifali jain 80 Reputation points
accepted 2023-09-23T08:36:35.4533333+00:00
Shaifali jain 80 Reputation points
2 answers

How to create HTTP Error Handling for the PUT method?

Hi, I would like to know how create HTTP Error Handling for the PUT method and rendering the information to user in UI. I guess that it's also possible to make GLobal HTTP Error Handling for all methods! I've created the put method which, when two users…

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,102 questions
asked 2023-09-20T15:57:55.88+00:00
sblb 1,141 Reputation points
edited an answer 2023-09-23T07:58:52.28+00:00
sblb 1,141 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,474 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,772 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,919 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,958 questions
asked 2023-09-20T09:04:32.94+00:00
Mesh Ka 140 Reputation points
commented 2023-09-23T07:16:26.19+00:00
Mesh Ka 140 Reputation points
2 answers

VS 2022 .net6 core C#. Application.StartupPath is different at run time.

Hi, I am trying to capture my project home directory: string exeFolder = Application.StartupPath; While i test app i am getting path with MyPath"bin\Debug\net6.0-windows". in result i cannot access my report folder with reports. Is there a…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,549 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,958 questions
asked 2023-09-23T00:46:59.4233333+00:00
Ed Januskis 46 Reputation points
answered 2023-09-23T06:36:54.49+00:00
KOZ6.0 235 Reputation points
1 answer

Runtime Error 424 when the module was running fine before.

Sub Report() Worksheets("Report").Activate Cells(41, 14).Select Dim baris, kira As Integer Dim Nama, ProperPath, Namafail As String baris = 41 kira = Cells(40, 17).Value Do While baris < kira + 41 Nama = Cells(baris,…

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
904 questions
.NET Runtime
.NET Runtime
.NET: Microsoft Technologies based on the .NET software framework.Runtime: The period of time during which a program is being executed in a computer.
1,042 questions
asked 2023-09-23T03:35:19.63+00:00
Chee Fong Cheng 0 Reputation points
edited a comment 2023-09-23T05:28:28.23+00:00
Viorel 102.3K Reputation points
2 answers One of the answers was accepted by the question author.

How to get error message or success after call action function using jquery ajax ?

I work on asp.net MVC application . I face issue I can't display error message or success message when call action RequesterIndex controller Resignation . calling API using ajax request working success only need to display error message or success…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,631 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
982 questions
asked 2023-09-13T09:00:41.16+00:00
Ahmed Abd El Aziz 265 Reputation points
accepted 2023-09-22T23:51:49.62+00:00
Ahmed Abd El Aziz 265 Reputation points
0 answers

How to run AI model in a Blazor frontend

Hi, What is the best way to run a AI model (programmed in Python) that has been deployed in Azure as a managed endpoint in the Blazor frontend of each user of a Blazor website? Is there a way to run the AI model in the Blazor frontend in a simple and…

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,078 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
5,922 questions
Azure Managed Applications
Azure Managed Applications
An Azure service that enables managed service providers, independent software vendors, and enterprise IT teams to deliver turnkey solutions through the Azure Marketplace or service catalog.
92 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,102 questions
.NET Machine learning
.NET Machine learning
.NET: Microsoft Technologies based on the .NET software framework.Machine learning: A type of artificial intelligence focused on enabling computers to use observed data to evolve new behaviors that have not been explicitly programmed.
131 questions
asked 2023-09-21T17:27:39.8233333+00:00
Héðinn Steingrímsson 0 Reputation points
commented 2023-09-22T23:30:25.26+00:00
Héðinn Steingrímsson 0 Reputation points
1 answer

Remove the index.html from url asp .net react IIS

I have an asp.net core and react project and I publish it to the IIS server. But after deploying it, it showed 'page can't be found' error. And when I added /index.html to the url (www.mywebsite.com/index.html), it showed my website and it seemed to be…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,549 questions
asked 2023-09-22T19:33:55.8066667+00:00
Jackie Moen 0 Reputation points
answered 2023-09-22T21:42:26.59+00:00
Bruce (SqlWork.com) 43,906 Reputation points
1 answer

WPF 3D to 2D projection appears wrong?

Have a case where a point on the PerspectiveCamera’s LookDirection vector does not project to the center of the Viewport3D. Any thoughts as to why? Here are details of the case (all the values are rounded for brevity): The Viewport3D is 778, 405. Any…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,020 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,474 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,958 questions
asked 2023-09-11T14:55:48.5633333+00:00
WoodManEXP 1 Reputation point
edited a comment 2023-09-22T19:41:20.39+00:00
WoodManEXP 1 Reputation point