Microsoft Q&A

.NET

14,086 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

14,086 questions with .NET-related tags

Sort by: Updated
0 answers

How do I toggle between Portrait and Landscape card using custom toggle button

Hello forum, I recently created a toggle button to help toggle between landscape and portrait mode of bootstrap card, before user can print. Please how can I make the toggle button I created to change the orientation of the card? I have no idea how to do…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
898 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.
465 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,328 questions
asked 2023-03-30T01:25:04.3033333+00:00
Donald Symmons 1,266 Reputation points
edited the question 2023-03-30T01:25:58.15+00:00
Donald Symmons 1,266 Reputation points
0 answers

How to create query builder from dynamic multiple tables by ASP. Net Core?

I want to build a dynamic report by Asp.net core -EF-, that is received tables and columns names from user, and then create SQL query depended on theses inputs, to generate dynamic report, I searched how can create SQL query, but most ways were with one…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,848 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.
9,140 questions
asked 2023-03-29T08:16:19.6666667+00:00
Arwa Sami 0 Reputation points
edited a comment 2023-03-30T01:23:23.1466667+00:00
Xinran Shen - MSFT 1,281 Reputation points Microsoft Vendor
1 answer

Visual Studio Code C# MVC Application - How to view Marked up HTML Code as if hard coded in an HTML Page...

Attempting to do code behind in a Visual Studio Code Application when I have done my own HTML Markup code in a routine in the C# code: . . . @ViewData["abc"] = "<br/>Message<br/Message2<br/>Message3"; …

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
743 questions
asked 2023-03-28T23:21:40.2433333+00:00
BillNew 26 Reputation points
commented 2023-03-30T01:18:58.6066667+00:00
BillNew 26 Reputation points
0 answers

Why does Windows.Media.Audio.AudioGraph has inferior resampling quality compared to Windows.Media.Playback.MediaPlayer ?

I'm working on a modulated signal generator that uses audio render as output. So far I tested two methods of output from my application to hardware: Windows.Media.Playback.MediaPlayer Windows.Media.Audio.AudioGraph My generated input data encoding…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
898 questions
Universal Windows Platform (UWP)
asked 2023-03-29T08:06:52.17+00:00
Serhii Tyshchenko 0 Reputation points
commented 2023-03-30T01:16:03.7+00:00
Roy Li - MSFT 28,236 Reputation points Microsoft Vendor
1 answer

Entry field control is covered by keyboard

Hello, I have a view with 4 Entry controls, when I try to type inside the control, the keyboard will cover the Entry field. is there any way to shift up the control to be above the keyboard?

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,101 questions
asked 2023-03-29T13:11:02.2266667+00:00
ahmed omar 101 Reputation points
commented 2023-03-29T22:30:31.18+00:00
ahmed omar 101 Reputation points
0 answers

How do I fix APT206 - failed linking file resources and APT2259 'textEnd' is incompatible with attribute iconGravity errors?

I have a Xamarin Forms application that I am migrating to MAUI and I am getting the following 2 errors during compilation. APT2259 'textEnd' is incompatible with attribute iconGravity (attr) flags [start=1, textStart=2]. APT2061 failed linking file…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,101 questions
Microsoft Build
Microsoft Build
A Microsoft platform for building applications with Visual Studio and .NET on Windows.
381 questions
asked 2023-03-20T05:08:57.3866667+00:00
Gorimar, Behzad 0 Reputation points
commented 2023-03-29T22:02:19.86+00:00
Gorimar, Behzad 0 Reputation points
1 answer

OnNavigatedTo For ContentView

Hi, What is the alternative to OnNavigatedTo in the ContentView? Thanks, Jassim

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,101 questions
asked 2022-10-01T23:31:22.203+00:00
Jassim Al Rahma 1,166 Reputation points
commented 2023-03-29T22:00:48.8366667+00:00
Jassim Al Rahma 1,166 Reputation points
0 answers

How to Open Files on Xamarin Android Using FilePicker

using Xamarin.Essentials; (at the top of the file) async Task<FileResult> PickAndShow(PickOptions options) { try { var result = await FilePicker.PickAsync(options); if (result != null) { string Text…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,932 questions
asked 2023-03-21T13:53:33.71+00:00
Ronald GANS 136 Reputation points
commented 2023-03-29T21:35:16.4+00:00
Ronald GANS 136 Reputation points
0 answers

DataTrigger if Else case

Hi, I have an Image that I want to show and hide based on a Label like this: <Image.Triggers> <DataTrigger TargetType="Image" Binding="{Binding Source={x:Reference LabelNickname}, Path=Text}" Value="Add"> …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,101 questions
asked 2023-03-29T21:24:25.2366667+00:00
Jassim Al Rahma 1,166 Reputation points
0 answers

How to enhance Azure AD B2C Samples to Accommodate Azure API Management (APIM)?

Background: I've been studying https://learn.microsoft.com/en-us/answers/questions/1185611/where-are-net-7-updates-to-azure-active-directory and https://learn.microsoft.com/en-us/azure/api-management/howto-protect-backend-frontend-azure-ad-b2c where 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.
886 questions
Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,153 questions
asked 2023-03-02T18:48:19.2566667+00:00
Siegfried Heintze 1,411 Reputation points
commented 2023-03-29T21:14:07.31+00:00
Siegfried Heintze 1,411 Reputation points
1 answer

Conditional MainPage in AppShell

Hi, I have the below in my AppShell <?xml version="1.0" encoding="utf-8" ?> <Shell x:Class="MyApp.Mobile.AppShell" xmlns="http://schemas.microsoft.com/dotnet/2021/maui" …

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,101 questions
asked 2023-03-29T14:05:55.4833333+00:00
Jassim Al Rahma 1,166 Reputation points
commented 2023-03-29T20:54:33.6866667+00:00
Jassim Al Rahma 1,166 Reputation points
1 answer

Database Permissions issue on Account model

I have an MVC site with the Individual User Accounts. On most of the site we use SPROCS instead of using Entity Framework. We recently changed the user account on the connection strings to lock our databases down a bit more. I am needing to set…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
743 questions
asked 2023-03-29T17:34:23.4033333+00:00
M J 641 Reputation points
answered 2023-03-29T20:48:12.19+00:00
M J 641 Reputation points
2 answers

How do I dynamically replace value in razor syntax based on selectedIndex in dropdown

I have an CSHTML View that has a dropdownlist. In the OnChange event I'm calling reportchange(this) which calls my function reportchange. How can I dynamically use the selectedIndex, this code doesn't work because the Razor code errors out with the…

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
743 questions
asked 2023-03-29T13:33:39.8466667+00:00
Bill 0 Reputation points
commented 2023-03-29T20:47:21.6266667+00:00
Bill 0 Reputation points
0 answers

Trying to make a post request

I am trying to register a user in here https://reqres.in/api/register USING https://reqres.in/ public async Task RegisterAsync(string _userName, string _paaWoed) { var data = new { email = _userName, password = _paaWoed }; …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,932 questions
asked 2023-03-29T20:34:42.0166667+00:00
Eduardo Gomez 2,466 Reputation points
edited the question 2023-03-29T20:35:16.0833333+00:00
Eduardo Gomez 2,466 Reputation points
0 answers

I have a listview with a groupheader which displays the group name and items underneath it. Is there anyway On click on the header/Group name I can show or hide the items underneath it?

For example : On click of the "Bear" I can show /hide the items

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,101 questions
Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,932 questions
asked 2023-03-29T20:33:10.1266667+00:00
Albin Lukose 0 Reputation points
0 answers

using custom font inside C# .net core application

I have the following code in my C# application that coverts text to image. In this code, I am using a custom font. I am specifying the path of the custom font, the custom font resides in my wwwroot folder. below is the code where I am using custom…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,848 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
743 questions
asked 2023-03-29T19:35:14.7966667+00:00
Anjali Agarwal 656 Reputation points
edited the question 2023-03-29T19:46:04.3933333+00:00
Anjali Agarwal 656 Reputation points
1 answer

How to display and hide drop down lists based on condition drop down list ?

I work on blazor server side I have drop down list condition have 3 option server and database and owner . every option from these three options have one drop down list only so server have drop down list database have drop down list owner have drop down…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,848 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.
886 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.
7,603 questions
asked 2023-03-29T18:05:28.51+00:00
Ahmed Salah Abed Elaziz 85 Reputation points
edited a comment 2023-03-29T19:36:21.1566667+00:00
Ahmed Salah Abed Elaziz 85 Reputation points
0 answers

MAUI fails to deploy Android app

buildoutput.pdf Hi, Ia m trying to deploy my MAUI Android app to my device but keep getting Build Failed and not sure what is the reason. Attached is the build log.. Kindly help.. Thanks, Jassim

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
1,101 questions
asked 2023-03-29T19:26:50.53+00:00
Jassim Al Rahma 1,166 Reputation points
2 answers One of the answers was accepted by the question author.

Access Control

Good morning, I am working on a .NET Core 6, SQL Server project and I need some idea of how to implement permissions by fields, let me explain: in a form, for example, that has [Name, Surname, Date, Address, Gender] to be able to assign in an access…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,848 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
743 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
898 questions
asked 2023-03-23T12:15:43.6866667+00:00
Juan A. Reyes Paulino 0 Reputation points
accepted 2023-03-29T19:12:26.49+00:00
Juan A. Reyes Paulino 0 Reputation points
0 answers

Service fabric application project not crated properly

Hi I need to set up service fabric for Uni project, and I run into an issue I will try to explain as clearly because I am not sure where does the problem come from: When I create Service Fabric Application project, VS2022 creates only Service Fabric…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,848 questions
Azure Service Fabric
Azure Service Fabric
An Azure service that is used to develop microservices and orchestrate containers on Windows and Linux.
206 questions
asked 2023-03-27T16:47:40.6366667+00:00
Mirko Mijanović 0 Reputation points
commented 2023-03-29T18:24:12.4166667+00:00
KarishmaTiwari-MSFT 12,036 Reputation points Microsoft Employee