Microsoft Q&A

.NET

20,748 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

20,748 questions with .NET-related tags

Sort by: Updated
0 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,588 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,114 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,643 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,015 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,032 questions
asked 2023-10-02T22:47:53.42+00:00
Ahmed Abd El Aziz 285 Reputation points
edited the question 2023-10-02T22:48:29.9333333+00:00
Ahmed Abd El Aziz 285 Reputation points
1 answer

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,821 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,032 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
answered 2023-10-02T22:42:43.99+00:00
gekka 1,111 Reputation points MVP
1 answer One of the answers was accepted by the question author.

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.
989 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.
243 questions
asked 2023-09-22T23:54:26.29+00:00
Ahmed Abd El Aziz 285 Reputation points
accepted 2023-10-02T22:33:30.23+00:00
Ahmed Abd El Aziz 285 Reputation points
0 answers

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,163 questions
asked 2023-10-02T22:28:48.4033333+00:00
Rishabh Pandey 0 Reputation points
2 answers

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,163 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,032 questions
asked 2023-10-02T12:34:56.0733333+00:00
Matthew Zoljan 80 Reputation points
edited an answer 2023-10-02T22:28:40.4166667+00:00
Graham McKechnie 241 Reputation points
0 answers

HTTP Error 500.32 - ANCM Failed to Load dll

I have upgraded a .NET Core 2.1 web app to .NET 7. The application works fine on Visual Studio 2022. When I deploy that to Azure through Azure DevOps pipelines, I get the following error: HTTP Error 500.32 - ANCM Failed to Load dll Common solutions to…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,072 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,588 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
5,668 questions
asked 2023-10-02T21:58:13.0866667+00:00
Alexander Angelo 6 Reputation points
edited the question 2023-10-02T22:01:07.1866667+00:00
Alexander Angelo 6 Reputation points
1 answer One of the answers was accepted by the question author.

Unable to add data into SQL table - exception thrown, but query works OK

I created a temp table in Server Management Studio, and imported it into my application using Scaffol-DbContext ` Scaffold-DbContext 'Data Source=MyServer;Initial Catalog=MyCatalog;Integrated Security=True;Connect Timeout=30;Encrypt=False;Trust…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
591 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,072 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,015 questions
asked 2023-10-01T22:54:03.6033333+00:00
Robert Salasidis 131 Reputation points
accepted 2023-10-02T21:49:12.0833333+00:00
Robert Salasidis 131 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,588 questions
asked 2023-10-01T15:31:24.0033333+00:00
Volk Volk 301 Reputation points
commented 2023-10-02T21:49:02.0766667+00:00
Bruce (SqlWork.com) 44,811 Reputation points
1 answer

best practice for Application Insights with Blazor Server

i have seen multiple posts about Blazor Web Assembly and Application Insights but almost zero on how to best use application insights with Blazor server. is the only way to treat blazor server like web assembly ? are there any guides on how to get full…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,588 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,114 questions
asked 2023-10-02T18:35:53.3266667+00:00
Denny Figuerres 0 Reputation points
answered 2023-10-02T21:00:43.61+00:00
Bruce (SqlWork.com) 44,811 Reputation points
1 answer

Does Visual Studio 2022 support connection to Xamarin.iOS build machines running Xcode 15?

Even though the release notes for VIsual Studio 2022 version 17.7.3 (I'm running 17.7.4) say "Added support to list simulators and devices with Xcode 15", I get a warning that says, "The Xcode version installed on the Mac (15.0) is not…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,163 questions
asked 2023-10-02T19:55:32.9966667+00:00
Sibalik, Mike 6 Reputation points
answered 2023-10-02T20:48:11.9933333+00:00
Bruce (SqlWork.com) 44,811 Reputation points
2 answers

How to set default query string parameter value for webapi?

May I know how to set a default query string value for webapi in .NET 6? Example code: [HttpGet] public Greeting Greeting(string name) { return $"Hello {name}!"; } The name parameter needs to have a default value, if I use string name…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
3,588 questions
asked 2022-01-20T15:16:50.787+00:00
San Me 1 Reputation point
commented 2023-10-02T20:32:14.25+00:00
Henry Alonso Rojas Alvarez 0 Reputation points
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,588 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.
989 questions
asked 2023-09-24T21:57:19.01+00:00
Stanislav Panferov 45 Reputation points
commented 2023-10-02T20:09:46.5566667+00:00
Stanislav Panferov 45 Reputation points
2 answers One of the answers was accepted by the question author.

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
accepted 2023-10-02T19:35:53.1966667+00:00
Satish Cherian 0 Reputation points
0 answers

Is there a way to automate adding the FullText Index to an Entity Framework migration

Hi all; Yes I can add the script to the Migration.Up() everytime I revise my model. But that is fundamentally no different from having a CreateIndexes.sql that I just run in SSMS after creating a DB. Is there some way to declare the full text indexes in…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
591 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,015 questions
asked 2023-10-01T21:18:20.5333333+00:00
David Thielen 1,426 Reputation points
commented 2023-10-02T18:55:10.99+00:00
David Thielen 1,426 Reputation points
1 answer

How do I get the FreeTextTable.Rank via Entity Framework

Hi all; I'm able to get a list of records using FreeTextTable in Entity Framework as follows: var EventsSqlWhere = $"SELECT top 200 * FROM FreeTextTable(Events, *, {0}, 200) as t INNER JOIN Events u on u.Id = t.[KEY] ORDER BY t.[RANK]…

Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
591 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,015 questions
asked 2023-10-01T21:17:12.57+00:00
David Thielen 1,426 Reputation points
commented 2023-10-02T18:50:37.8733333+00:00
David Thielen 1,426 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,114 questions
asked 2023-09-29T16:15:02.6566667+00:00
sblb 1,141 Reputation points
edited an answer 2023-10-02T17:56:51.18+00:00
AgaveJoe 685 Reputation points
0 answers

How to listen to mouse clicks anywhere in the Visual Studio IDE and get information about the component that was clicked?

I'm trying to create an extension that listens to mouse clicks anywhere in the Visual Studio IDE window and get information about what was clicked. So far, I've only managed to do that for the text editor panel with IMouseProcessor, but I can't figure…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,072 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,821 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,032 questions
Visual Studio Extensions
Visual Studio Extensions
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Extensions: A program or program module that adds functionality to or extends the effectiveness of a program.
112 questions
asked 2023-10-02T17:56:30.8666667+00:00
stella 0 Reputation points
0 answers

How to get a .NET 8.0 (isolated) function app to appear in my release pipeline, or successfully deploy from Visual Studio

I made a new .NET 8.0 Isolated Function App on by B1 App Service plan three days ago and I'm used to being able to select my Azure Subscription, then "Function App on Windows", and then select the resource from the dropdown, but I see nothing…

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,465 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
2,072 questions
asked 2023-10-01T15:33:15.31+00:00
Richard Traviolia 0 Reputation points
commented 2023-10-02T17:47:47.4533333+00:00
MuthuKumaranMurugaachari-MSFT 16,216 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-02T17:10:10.3033333+00:00
Rob Caplan - MSFT 5,222 Reputation points Microsoft Employee
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,114 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,811 Reputation points