Microsoft Q&A

.NET

20,779 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,779 questions with .NET-related tags

Sort by: Updated
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,592 questions
JavaScript API
JavaScript API
An Office service that supports add-ins to interact with objects in Office client applications.
694 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
993 questions
asked 2023-09-24T21:57:19.01+00:00
Stanislav Panferov 45 Reputation points
commented 2023-10-03T22:54:44.8433333+00:00
0 answers

How to authenticate with SMS/whatsapp in MAUI App

Hello everyone. I'm developing mobile app in MAUI. Everything (db, API, etc etc) is on Azure. I wonder if there's an Azure function that allow developers to authenticate user of my app through SMS or whatsapp. So I would like to open app and allow user…

Microsoft Authenticator
Microsoft Authenticator
A Microsoft app for iOS and Android devices that enables authentication with two-factor verification, phone sign-in, and code generation.
4,038 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,885 questions
asked 2023-10-03T22:53:04.56+00:00
MC App 0 Reputation points
4 answers

which is better use data reader ado.net technology or entity framework core 7 ?

I work on blazor application server side I design web API to interact with razor pages my issue is which is suitable for my scenario using ado.net or entity framework core what I try as below : [HttpGet] …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,592 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,115 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,648 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,024 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,035 questions
asked 2023-10-02T22:47:53.42+00:00
Ahmed Abd El Aziz 285 Reputation points
answered 2023-10-03T22:13:19.7266667+00:00
Erland Sommarskog 88,856 Reputation points
2 answers

Asp.Net MVC5 - Static Html Files Authentication?

Hi, I am working on Asp.Net MVC5 (.Net Framework 4.8 & C#) web application. The application is hosted in azure app service. The project solution has a "Help" folder, and the contents of the help folder is static files only i.e., html files.…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,077 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
993 questions
asked 2023-10-03T15:33:22.3133333+00:00
Senthil S R 0 Reputation points
answered 2023-10-03T21:55:26.38+00:00
Bruce (SqlWork.com) 44,966 Reputation points
0 answers

No me deja crear proyectos ASP.NET y me sale el error HRESULT E_FAIL de una llamada a un componente COM

Hola, les quería preguntar si existe una solución para este error que me esta saliendo a la hora de crear un nuevo proyecto asp.net Framework pero si me deja usar el resto de proyectos. intente reparando, quitando modificaciones y reinstalando pero no se…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,648 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,829 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,035 questions
asked 2023-10-03T21:50:09.91+00:00
Varpu 0 Reputation points
1 answer

dotnet blazor maui UAE PASS authentication unable to redirect to the mobile app after authentication is done

I'm Developing the app with UAE pass authentication using Maui Blazor technology(C#). successfully obtained the authorization code from UAE Pass but i am facing difficulties redirecting back to mobile app. Please find the attached file. I have…

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,115 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,885 questions
asked 2023-10-03T05:25:23.7233333+00:00
Raju Gadda 26 Reputation points
edited an answer 2023-10-03T21:13:11.84+00:00
Bruce (SqlWork.com) 44,966 Reputation points
1 answer

How does setting the ExceptionHandlerOptions.AllowStatusCode404Response property work at the version and server level?

I have a nuget which contains a custom exception handler in .NET 7 and then I consume it in an API created in .NET 6, but it presents problems regarding StatusCode 404, in Development it correctly responds to this error, but in the cloud it responds to…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,592 questions
asked 2023-08-09T15:48:19.6233333+00:00
Diaz, Francisca 0 Reputation points
commented 2023-10-03T20:51:29.12+00:00
Moisés Ferreira 0 Reputation points
2 answers

Background worker not setting textbox.backcolor in UI thread

[windows forms, dotnet 4.8.1 VB] I have several applications that use a common non-indexed "message log" database file to communicate - works great! Each application tells the dashboard app when it starts, reports progress, completes, and is…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,641 questions
Windows
Windows
A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.
3,092 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,077 questions
asked 2023-10-03T16:55:24.0233333+00:00
JBDayrelton 0 Reputation points
answered 2023-10-03T20:42:10.6166667+00:00
Bruce (SqlWork.com) 44,966 Reputation points
0 answers

Error when try read data from Excel File in ASP.NET MVC

In an ASP.NET MVC app, I am trying to read data from Excel file but I get this error: The error appears in production mode, but in development mode there's no problem. I am making host on Local Host on my computer Microsoft Excel cannot access the file…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
993 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,035 questions
asked 2023-10-03T17:37:39.96+00:00
mostafa ahmed 1 Reputation point
commented 2023-10-03T20:40:05.9133333+00:00
mostafa ahmed 1 Reputation point
1 answer

NuGet Package restore failed...The underlying connection was closed.., error in VisualStudio ultimate 2012

Hi, Below is machine and VS details: Windows 7 Visual studio Ultimate 2012 Version 11.0.61219.00 Update 5 Microsoft .NET framework version 4.5.50709 Project: MVC 4 project - C# Everything was working fine till today; But my…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,077 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
993 questions
asked 2022-10-01T17:10:31.447+00:00
bharat 1 Reputation point
commented 2023-10-03T19:56:48.8833333+00:00
Balbir Singh 0 Reputation points
0 answers

Modify MVC5 project template so that admin can accept\reject account

Hi, I used the default MVC 5 template to create my project. The project allows a user to create their account (self register): I'd like to modify it so that a user cannot self register. Instead they create their account and an admin needs to either…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
993 questions
asked 2023-10-03T19:38:20.83+00:00
Bill Johnson 1 Reputation point
0 answers

How to fix start up white screen problem

I was restore my pc after setting up I was unable get further I was stuck at the services section it's shows notting

.NET F#
.NET F#
.NET: Microsoft Technologies based on the .NET software framework.F#: A strongly typed, multi-paradigm programming language developed by the F# Software Foundation, Microsoft, and open contributors.
65 questions
asked 2023-10-03T19:24:49.58+00:00
teja sabbam 0 Reputation points
0 answers

How to Deploy .Net Maui Windows application in Intune using Line of Business Deployement?

I have a .NET Maui Application and I published it into Side Loading package. In the created package there is one main .msix file and another Microsoft.WindowsAppRuntime.1.2.msix inside a dependency folder. I am using Intune Line of Business deployment to…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,885 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
3,350 questions
asked 2023-09-25T13:28:14.65+00:00
Lohith K K 60 Reputation points
commented 2023-10-03T19:11:13.6366667+00:00
Igal Flegmann 0 Reputation points
1 answer

Datareader vs Dataadapter vs something else

HI , i have been recently working on the c# code to pull the data from sql server database but have been stuck at creating a generic method which can retrieve large data from database . The term generic is used because my application have 20 forms and…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,641 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,035 questions
asked 2023-10-03T14:38:41.0066667+00:00
ankit goel 606 Reputation points
answered 2023-10-03T18:22:26.2833333+00:00
Karen Payne MVP 32,991 Reputation points
1 answer

Reducing opacity of swipe images

How do I reduce the opacity of images in a swiper container, except for the image that is swiped to display in the middle? For example, as the images are swiping through, any image that appear in the middle will be clear while the other ones beside will…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,077 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,648 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.
626 questions
asked 2023-10-03T12:11:36.16+00:00
Donald Symmons 2,046 Reputation points
answered 2023-10-03T18:08:05.1866667+00:00
Bruce (SqlWork.com) 44,966 Reputation points
0 answers

Emulator error in Visual studio 2022

Hi Team, I am trying to run a Xamarin application using Visual Studio 2022 community. From Android device Manager, I have created an emulator with below configuration - Processor - X86_64 OS - Android 13.0 - API 33 While running it getting below error…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,164 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,829 questions
asked 2023-10-03T17:46:27.84+00:00
salilsingh-9961 221 Reputation points
1 answer

Binding library with xcfranework

How to use xcframework in xamarin ios binding library

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,164 questions
asked 2023-10-02T22:28:48.4033333+00:00
Rishabh Pandey 0 Reputation points
answered 2023-10-03T17:35:50.8933333+00:00
Bruce (SqlWork.com) 44,966 Reputation points
3 answers

Controls inside controls

Hi , can someone please share some idea by which i can create a list which shows all the parent controls in a form with all the child controls inside them .

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,641 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,035 questions
asked 2023-10-03T14:43:40.1233333+00:00
Shaifali jain 320 Reputation points
answered 2023-10-03T17:01:51.8166667+00:00
Karen Payne MVP 32,991 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,885 questions
asked 2023-09-19T14:24:15.5166667+00:00
Sreejith Sreenivasan 406 Reputation points
commented 2023-10-03T17:00:54.9366667+00:00
Rob Caplan - MSFT 5,227 Reputation points Microsoft Employee
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,115 questions
asked 2023-09-29T16:15:02.6566667+00:00
sblb 1,141 Reputation points
commented 2023-10-03T16:50:12.13+00:00
sblb 1,141 Reputation points