Microsoft Q&A

.NET

20,742 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,742 questions with .NET-related tags

Sort by: Updated
1 answer

Failed integrity metadata check for Blazor application (NET7)

0 I have a project in NET7 and Blazor hosted in an ASP.NET Core web application. The website is hosted by a service provider. When I deploy the application on the server in a hosting provider, I check the application with different browsers. The…

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,112 questions
asked 2023-10-02T07:40:28.0466667+00:00
Enrico Rossini 96 Reputation points
answered 2023-10-02T16:18:45.17+00:00
Bruce (SqlWork.com) 44,646 Reputation points
0 answers

Determine "Recommended" display resolution settings

Got the code that gets a list of the monitors (using EnumDisplayDevices) along with getting all the settings (using EnumDisplaySettings) for each monitor working just fine. However, when I right click my desktop and adjust the resolution one of the…

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
8,912 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,070 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,030 questions
asked 2023-10-02T16:02:33.03+00:00
Dave Cotton 41 Reputation points
2 answers

How rendering handling concurrency in razor page from API response?

Hi, I'm following up on all the discussions I've had about handling concurrency errors. 1 - I would like to know if it is possible to handle concurrency errors in a context where I have a DataGrid in edition mode on a line? 2 - I have defined a put…

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,112 questions
asked 2023-09-29T16:15:02.6566667+00:00
sblb 1,141 Reputation points
answered 2023-10-02T15:37:54.19+00:00
AgaveJoe 685 Reputation points
0 answers

Como enviar datos de la variable del back al front

Como enviar la variable del back al front, ya que como lo tengo me marca error no lo reconoce. Back string Id_Hub_CFDI = "SORIANA2000"; Como enviar la variable del back al front <scrip> var Id_Hub_CFDI_Ent =…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,642 questions
asked 2023-10-02T15:00:22.0066667+00:00
roberto chavarria 0 Reputation points
0 answers

use "Application.Current.UserAppTheme = AppTheme.Light" force application theme light, the first line of iphone will disappear when system is dart theme

Application.Current.UserAppTheme = AppTheme.Light; I want to set the application theme light, use the upper line code , but when ios system theme is dark , first line of iphone (time signal..) will display with white textcolor, then will disappear on…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,878 questions
asked 2023-10-02T14:54:57.8166667+00:00
Fei Xu 370 Reputation points
1 answer

Push notification on MAUI application using FCM

I am trying to implement push notification on my MAUI application using FCM. I follow this blog and I did everything as per the blog. They suggest to install only 2 NuGet packages, Plugin.Firebase and Plugin.Firebase.Crashlytics. (I installed it by…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,878 questions
asked 2023-09-29T10:06:12.68+00:00
Sreejith Sreenivasan 406 Reputation points
commented 2023-10-02T14:42:05.3466667+00:00
Sreejith Sreenivasan 406 Reputation points
0 answers

How to reduce font size based on Textblock size

Hi All, I have a Textblock inside WPF grid which can span to 1 to n rows based on some conditions. When Textblock is spanned to two or more rows it mostly displays the text completely due to textwrapping set to "wrap". But when Textblock is…

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,483 questions
asked 2023-10-02T14:32:18.0866667+00:00
Pratham Jain 181 Reputation points
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,878 questions
asked 2023-09-25T15:20:10.3266667+00:00
Sakshi Poojary 55 Reputation points
edited a comment 2023-10-02T14:18:08.91+00:00
Sakshi Poojary 55 Reputation points
1 answer

MAUI: Listview isvisible property is not working from the code behind?

I am trying to show the selected image or file on my UI on a listview. So initially the listview's IsVisible I set to false and after picking item I set the IsVisible property to true. My problem is after picking item the listview is not visible on the…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,878 questions
asked 2023-09-19T14:24:15.5166667+00:00
Sreejith Sreenivasan 406 Reputation points
commented 2023-10-02T14:13:31.0766667+00:00
Sreejith Sreenivasan 406 Reputation points
0 answers

How to create popup window that display Product Details ?

Hi friends! I have a DataGrid that contains a list of product . when i click on a product i should open a popup windows that contains Product's details and i would modify the Price in it for example. I implement a GlobalUsing.cs such : global using…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,878 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,030 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.
695 questions
asked 2023-10-02T14:07:46.96+00:00
Kaouthar GR AOUICHAOUI 0 Reputation points
1 answer

How to create a Splash screen on Andriod

Hi, What is the easiest way to create a Splash screen for my Xamarin project. I can't get it to work. Now my app won't work at all. Some help would be appreciated.

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,161 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,030 questions
asked 2023-10-02T12:34:56.0733333+00:00
Matthew Zoljan 80 Reputation points
answered 2023-10-02T12:56:21.36+00:00
Olaf Helper 34,291 Reputation points
3 answers One of the answers was accepted by the question author.

How to get past "To start Android, enter your password"

I just installed VS2019 and Xamarin for multiplatform development. Created a "Blank" project. When I launch Android_Accelerated_x86_Nougat ... which displays a "To start Android, enter your password". How do I get an Android password?

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,161 questions
asked 2020-11-21T17:22:41.013+00:00
VVX 21 Reputation points
commented 2023-10-02T12:49:05.44+00:00
Sorin T 0 Reputation points
0 answers

Three material Design TextBoxes inside one MaterialDesignFloatingHintTexbox in WPF

I have a MaterialDesignFloatingHintTextBox which displays a "Date of Birth" hint to my users when it is empty. Here is what I want to implement: the TextBox to display three TextBoxes to the user when clicked in like this, so that my users…

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,483 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,817 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,030 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.
695 questions
asked 2023-10-02T08:44:28.02+00:00
Mesh Ka 140 Reputation points
edited a comment 2023-10-02T12:43:51.3033333+00:00
Mesh Ka 140 Reputation points
1 answer

Azure AD authentication claims returns null in Dotnet core 6.0

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
16,677 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,585 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,030 questions
asked 2023-09-30T14:11:23.1266667+00:00
Mansi Sulodia 1 Reputation point
edited the question 2023-10-02T12:40:17.53+00:00
MuthuKumaranMurugaachari-MSFT 16,216 Reputation points
2 answers

EF Core: Map multiple c# classes to DB table

Hello, I have a DB table named JobPosting with 60 columns. I'd like to have 2 c# entities JobPostingFull & JobPostingLite which both reference the JobPosting table. The JobPostingFull class has all columns from the DB, the JobPostingLite class has…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
591 questions
asked 2023-09-30T14:36:07.7+00:00
Satish Cherian 0 Reputation points
commented 2023-10-02T12:36:00.83+00:00
Satish Cherian 0 Reputation points
0 answers

Multiple app shells

Hi, In app.cs ctor i have condition to move to login through AppShell or to move to main page. It possible to create new app shell and move to main page through this new app shell? Thanks,

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,878 questions
asked 2023-10-02T11:52:11.3566667+00:00
דני שטרית 1,261 Reputation points
0 answers

How to automatically swipe images in gallery

Hi, Please I have 3 images in gallery. Is a way to automatically swipe these images using javascript or CSS? As the image in front swipes to the right, the image on the left should swipe to the right and vice versa. .gallery{width:…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,070 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,642 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
693 questions
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.
621 questions
asked 2023-10-02T11:42:22.9033333+00:00
Donald Symmons 2,026 Reputation points
1 answer One of the answers was accepted by the question author.

Display value of DropDownList SelectedItem on a label

Hello, I have been trying to show the value of DropDownList selecteditem in a label but all efforts could not yield desired result. I have a table Data as follows: IdFruits colors1Apple Red2Banana …

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,070 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,642 questions
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.
621 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,030 questions
asked 2023-10-02T00:25:37.77+00:00
Donald Symmons 2,026 Reputation points
accepted 2023-10-02T10:27:25.9+00:00
Donald Symmons 2,026 Reputation points
0 answers

How to protect Net.Core server from malicious content uploads by users?

Hi! I have a website where on certain pages the user can (through checks in the controller method): To save (upload to server) text in text fields and to CKEditor. To save (upload to server) images (.jpg) to website through CKEditor and through …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,585 questions
asked 2023-10-01T15:31:24.0033333+00:00
Volk Volk 301 Reputation points
commented 2023-10-02T10:17:36.2633333+00:00
Volk Volk 301 Reputation points
1 answer

How to check for null column in a DataRow

I'm using DataTables in 4.7.2, and I have defined a table with 2 columns, Start_Date and End_Date. If the 2nd column has a null value, how can I check for that? Right now I've gotten this far, which abends at runtime: // foreach (DataRow eachrow in…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,070 questions
asked 2023-09-26T00:26:22.24+00:00
Coreysan 1,366 Reputation points
commented 2023-10-02T10:17:01.3333333+00:00
Jiale Xue - MSFT 11,336 Reputation points Microsoft Vendor