Microsoft Q&A

.NET

20,689 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,689 questions with .NET-related tags

Sort by: Updated
1 answer

Best Practices for Managing Application State in Blazor WebAssembly?

I am developing a Blazor WebAssembly application and exploring different approaches to managing application state efficiently. Can anyone provide recommendations or best practices for state management in Blazor WebAssembly?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,060 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,573 questions
asked 2023-09-23T16:04:45.95+00:00
Kevin Beasley 0 Reputation points
commented 2023-09-28T08:47:32.5166667+00:00
Farid Uddin Kiron MSFT 451 Reputation points Microsoft Vendor
0 answers

MAUI: How to add splash screen in android platform

I am trying to add splash screen on my new MAUI application. I tried the implementation on this blog but the image is in circle (Android 12 device) and only showing black and white color on the icon. Is there anyway to show the real color of the icon on…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,869 questions
asked 2023-09-25T15:20:10.3266667+00:00
Sakshi Poojary 40 Reputation points
commented 2023-09-28T08:45:37.66+00:00
Sakshi Poojary 40 Reputation points
0 answers

Server 2022 - Maui app with net .7 is not working

Hi, I installed Maui app on server 2019 with this command and its works but on server 2022 its not work: dotnet publish -f net7.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None -p:WindowsAppSDKSelfContained=true…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,869 questions
asked 2023-09-26T15:03:25.4466667+00:00
דני שטרית 1,181 Reputation points
edited a comment 2023-09-28T08:40:31.4433333+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,416 Reputation points Microsoft Vendor
0 answers

SAML SSO From Partner Portal

Team, We have a Portal called "MyPortal" deployed in Azure and it is enabled with Azure ADB2C Authentication. Now we have a requirement to allow SSO from partner portal to MyPortal. Users will login to PartnerPortal with its own IDP. After they…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,060 questions
asked 2023-09-28T08:38:18.3766667+00:00
Suresh Rajamani 1 Reputation point
0 answers

Visual studio blazor wrap properly values issue

Hi all in visual studio in a blazor project the wrap properly have only the values soft and hard but not also the value off. This caused me problem because I didn't know about the off value . and that waste many time of me. why visual studio don't…

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,108 questions
asked 2023-09-28T08:21:26.92+00:00
Haviv Elbsz 1,226 Reputation points
1 answer

How can I display a PDF file in MAUI?

I plan to display a PDF file on my MAUI app. I tried following the answer at this link (https://learn.microsoft.com/en-us/answers/questions/1310387/how-to-view-the-pdf-file-from-maui), and I have used the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,869 questions
asked 2023-09-21T04:30:21.89+00:00
韓 金倫 0 Reputation points
answered 2023-09-28T08:11:46.2733333+00:00
Leon Lu (Shanghai Wicresoft Co,.Ltd.) 54,086 Reputation points Microsoft Vendor
1 answer

Entity Framework BulkInsert Temp table without creating

Hi, I am creating Temp Table and inserting data with EF BulkInsert , then I use that temp table in the dynamic script. I need to BulkInsert 100K rows into SQL Server but it was keep loading . I tried to insert insert for loop but I am getting a error…

Entity Framework 6.0
Entity Framework 6.0
A Microsoft open-source object-database mapper for .NET.
259 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,060 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,639 questions
asked 2023-09-27T13:21:04.1433333+00:00
siva_dev 1 Reputation point
edited an answer 2023-09-28T08:10:28.9366667+00:00
Wenbin Geng 321 Reputation points Microsoft Vendor
1 answer

Design pattern ideas for large solution with multiple projects

Hello, I'm starting a new project in my company where 3-5 developers will be working on the same solution. I need help or ideas on how to build the base for this project (net core solution I guess) with Visual Studio and how to organize the multiple…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,573 questions
asked 2023-09-28T00:25:07.58+00:00
Jesus Sanchez 0 Reputation points
answered 2023-09-28T07:59:26.04+00:00
Zhi Lv - MSFT 27,756 Reputation points Microsoft Vendor
2 answers

Load XAML file dynamically

Hello, In my desktop application I have some themes and styles defined like this: <?xml version="1.0" encoding="UTF-8" ?> <ResourceDictionary x:Class="App.Themes.S" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,869 questions
asked 2023-09-27T12:16:33.2466667+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
edited an answer 2023-09-28T07:51:42.8966667+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
1 answer One of the answers was accepted by the question author.

Blazor textarea setting issue

Hello all. how I do set a textarea element so it will have a specific width an height and that it's text will have a horizontal and vertical scrollable . I want that when user type text the line length be when user keying ENTER key. Thank you very much

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,108 questions
asked 2023-09-27T11:26:14.95+00:00
Haviv Elbsz 1,226 Reputation points
commented 2023-09-28T07:43:42.5033333+00:00
Haviv Elbsz 1,226 Reputation points
1 answer

System.InvalidOperationException: There is an error in XML document (0, 0). ---> System.Xml.XmlException: Root element is missing.

Hi, Everybody!... I am trying to parse the following XML…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,060 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,639 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,992 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,044 questions
asked 2023-09-27T22:41:28.2466667+00:00
Julio Bello 201 Reputation points
commented 2023-09-28T07:42:42.53+00:00
Viorel 102.4K Reputation points
0 answers

Maui mobile app using Signalr is encoding hub name in ConnectionData parameter on iOS 17

We have a mobile app in production built using Maui. The server running the api is it connecting to uses .net framework. There are issues connecting to signalR from iOS17 devices. From debug we can see the following: iOS 17 device sets the connectionData…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,639 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,869 questions
asked 2023-09-27T11:39:11.9033333+00:00
T_TDSi 0 Reputation points
commented 2023-09-28T07:39:38.98+00:00
Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 22,416 Reputation points Microsoft Vendor
1 answer

Finding parent form and tablelayoutPanel

hello , private void TDlloading_error_Load(object sender, EventArgs e) { HideButtonsInParentFormTableLayoutPanel(); } private void HideButtonsInParentFormTableLayoutPanel() { // Access the parent…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,630 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,992 questions
asked 2023-09-26T10:44:39.0333333+00:00
Shaifali jain 220 Reputation points
commented 2023-09-28T07:36:51.8833333+00:00
Shaifali jain 220 Reputation points
0 answers

Forward Binding i.e. reapply a binding

Is it possible to create an attached property containing a Binding/BindingBase & then apply it to a control i.e. forward a binding thru XAML. Example would be you can have global style that use attached properties & then local styles to set…

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,479 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,992 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.
690 questions
asked 2023-09-27T17:51:57.8433333+00:00
Lars Larsson 16 Reputation points
edited a comment 2023-09-28T07:25:00.67+00:00
Lars Larsson 16 Reputation points
2 answers

How can I test a NULL column in DataTable?

I'd like to use the following 2 lines: if (eachrow["ENDDATE"] == null) end = DateTime.Now; else end = Convert.ToDateTime(eachrow["ENDDATE"].ToString()); But if the column "ENDDATE" has a null…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,060 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,976 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,992 questions
asked 2023-09-28T01:02:45.6733333+00:00
Coreysan 1,346 Reputation points
commented 2023-09-28T07:10:24.64+00:00
Jiale Xue - MSFT 10,771 Reputation points Microsoft Vendor
0 answers

Can AnchorTagHelper specify different controllers with the same name?

I have multiple controllers with the same name in different namespaces. To explain clearly what I want to do, I first briefly show part of my code. I created a ViewLocationExpander class. Its main function is to automatically find the view corresponding…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,573 questions
asked 2023-09-21T00:59:44.6833333+00:00
刘琦 0 Reputation points
edited a comment 2023-09-28T07:02:11.13+00:00
刘琦 0 Reputation points
0 answers

Visual Studio Community Version 17.7.4 Http Test 401 Errors

Since upgrading my Visual Studio Community edition to Version 17.7.4, I noticed that the method of sending requests in an http test document has changed in the UI from a green play button to a “Send Request” link. More importantly, since this update all…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,573 questions
asked 2023-09-27T14:23:59.85+00:00
John Reynolds 0 Reputation points
commented 2023-09-28T06:45:45.55+00:00
Xinran Shen - MSFT 2,001 Reputation points Microsoft Vendor
2 answers

Conditional validation depending which MVC button pushed

I have a scaffolded form in MVC with two buttons, Save and Submit. I want conditional validation: Save, no validation; Submit, validation. In the cshtml I have: ... <td> @Html.EditorFor(model => model.DSCRPTN, new { htmlAttributes = new…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
987 questions
asked 2023-09-25T13:56:00.5533333+00:00
J Fisher 0 Reputation points
commented 2023-09-28T06:43:13.07+00:00
Lan Huang-MSFT 17,881 Reputation points Microsoft Vendor
0 answers

Multiple types of Distributed Cache in ASP.NET Core

I would like to use Redis and In-Memory for IDistributedCache dependency injection. Is this possible? If so, how would you go about configuring this in Startup.cs?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,573 questions
asked 2023-09-28T05:21:08.6233333+00:00
John Russel Punio 0 Reputation points
commented 2023-09-28T06:39:50.64+00:00
Tiny Wang-MSFT 1,146 Reputation points Microsoft Vendor
0 answers

Getting random error "The client has disconnected" when there is an high traffic on server and request body is large.

We are getting below error randomly when there high trafic to our server and as per our observation it seems that we are getting this error only for which has request body is large. Microsoft.AspNetCore.Connections.ConnectionResetException: The client…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,573 questions
asked 2023-09-28T06:06:54.67+00:00
abhijitm 0 Reputation points
commented 2023-09-28T06:38:37.06+00:00
JasonPan - MSFT 2,691 Reputation points Microsoft Vendor