Microsoft Q&A

.NET

12,933 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

3,900 questions with .NET-related tags

Sort by: Updated
2 answers One of the answers was accepted by the question author.

Using Xamarin framework for coding in C#

I have completely mortgaged off my new Mac Mini 2020 with M1 chip implanted. Now that I have done that, and that I have an iPhone and Android mobile OS installed tablets - namely, a Samsung tablet brand, I want to learn quickly to code using their…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,809 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.
6,950 questions
asked 2023-01-31T13:50:09.4533333+00:00
John 121 Reputation points
accepted 2023-01-31T23:24:24.6766667+00:00
John 121 Reputation points
2 answers One of the answers was accepted by the question author.

Auth cookie is deleted by the browser when it closes

I have a strange problem. When I close my browser (whether Chrome or MS Edge), my authentication cookie is deleted. Consequently, the next time I start the browser, I have to log in again. My controller looks like this: ClaimsIdentity claimsIdentity =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,545 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.
785 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.
6,950 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
592 questions
asked 2023-01-31T19:34:06.25+00:00
perfect code 141 Reputation points
answered 2023-01-31T20:24:19.61+00:00
AgaveJoe 17,096 Reputation points
2 answers One of the answers was accepted by the question author.

How do I get the List from firebase sorted?

The items display but I want them to be in ClubId order but can't get it to sort. What do I need to fix? Model/Club.cs public class Club { public int ClubId { get; set; } public string DateTime { get; set; } …

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
4,809 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.
6,950 questions
asked 2023-01-16T01:25:36.04+00:00
Bruce Krueger 286 Reputation points
accepted 2023-01-31T19:54:06.73+00:00
Bruce Krueger 286 Reputation points
1 answer One of the answers was accepted by the question author.

B2C login custom template hosted on my app in Azure Docker is displaying a blank page

I have a Blazor server app hosted in Azure registries using a B2C login. This is working fine. I created my own template to change the B2C login UI. A simple cshtml and controller were created in the same app (I am not using Azure blob) with code: …

Azure Web Apps
Azure Web Apps
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,319 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.
785 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,623 questions
asked 2023-01-17T15:58:43.92+00:00
Andrey Kuznetsov 40 Reputation points
accepted 2023-01-31T11:59:30.9133333+00:00
Andrey Kuznetsov 40 Reputation points
1 answer One of the answers was accepted by the question author.

Implementing SignalR in ASP.NET Core Web App (MVC) for real-time database updates

Hi All, I am still a bit green with C# and ASP.NET however I have created a ASP.NET Core Web App (MVC) .NET6, that displays an IOT temperature sensor reading summary dashboard and another page that displays the readings and other information about each…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,545 questions
Azure SignalR Service
Azure SignalR Service
An Azure service that is used for adding real-time communications to web applications.
72 questions
asked 2023-01-11T13:00:50.5266667+00:00
ChrisU 91 Reputation points
accepted 2023-01-31T09:58:08.98+00:00
ChrisU 91 Reputation points
2 answers One of the answers was accepted by the question author.

.NET Core API Framework Warning

Hi All, I am developing an application using .NET Core with angular client. I am exporting the data to excel and generating the file in C# .NET Core. I am using a nuget package for the same. After installing the nuget package in the project I am getting…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,545 questions
asked 2023-01-27T14:03:43.83+00:00
Pratham Jain 81 Reputation points
answered 2023-01-31T09:27:25.62+00:00
Srivastava, Prashant 1 Reputation point
1 answer One of the answers was accepted by the question author.

Check if frame is in specified position .net maui

is it possible to check if there is anything in the specified position of a grid? for example: if (Frame in Grid.Position(1,7)) { Console.Write("Specified position is already in use."); } I am trying to make a map editor for my own custom…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
890 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
615 questions
asked 2023-01-24T08:13:42.0133333+00:00
Mielesplayz 261 Reputation points
edited a comment 2023-01-31T08:57:35.2566667+00:00
Mielesplayz 261 Reputation points
1 answer One of the answers was accepted by the question author.

"Güncelle" button not working

ı dont undestand. Delete's working but update(Güncelle) not working. Where's my mistake ?

ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
592 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.
147 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,189 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.
400 questions
asked 2023-01-31T06:19:44.85+00:00
Harun Ergün 100 Reputation points
edited a comment 2023-01-31T08:53:25.92+00:00
Viorel 82,646 Reputation points
1 answer One of the answers was accepted by the question author.

Download Files in Razor Pages without submitting the form (Edit page)

Hi, I want to download my uploaded files in razor pages edit screen. I dont want to submit the form or refresh the page upon clicking on the download button. Could anyone please advice me how to acheive this?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,545 questions
asked 2022-01-31T01:57:06.32+00:00
Blooming Developer 196 Reputation points
commented 2023-01-30T23:50:23.35+00:00
1337DOMINATOR228 0 Reputation points
1 answer One of the answers was accepted by the question author.

Debugging Shell Navigation

Hello Friends, I was wondering if anyone knows where to put my DebuggerDisplay Attribute annotations so that I can debug my navigation requests. Thanks !!! Debugging navigation Some of the Shell classes are decorated with the DebuggerDisplayAttribute,…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
890 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.
6,950 questions
asked 2023-01-27T19:08:08.5433333+00:00
Ronald Rex 531 Reputation points
accepted 2023-01-30T23:01:26.04+00:00
Ronald Rex 531 Reputation points
2 answers One of the answers was accepted by the question author.

Displaying Deserialized JSON Data In Razor Page

Hello Everyone, I am using Visual Studio 2022 (x64) Community Version Entity Framework Core 6 C# Razor Pages (Not MVC) I am pulling data from the Google YouTube API, and want to display it on a .cshtml page. Here is a sample of the data: { …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,545 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.
6,950 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
2,412 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.
147 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,189 questions
asked 2023-01-30T02:39:33.7466667+00:00
Brian Ashcraft 20 Reputation points
commented 2023-01-30T22:52:28.9233333+00:00
Brian Ashcraft 20 Reputation points
4 answers One of the answers was accepted by the question author.

c# use tablename as variable

How can i use tablename as a variable in sql query? "select * from table_name " table_name must be variable.

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,545 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.
6,950 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.
8,501 questions
asked 2023-01-30T06:44:59.1066667+00:00
ÖMER NASUHİ KESKİN 20 Reputation points
answered 2023-01-30T22:25:01.1933333+00:00
Erland Sommarskog 67,721 Reputation points Microsoft MVP
1 answer One of the answers was accepted by the question author.

How can caming towns null ?

When the city is selected, it comes with the town. But when the city is selected, I want the town to be empty and for the user to select it. I want when user choose city second drowboxlist caming null how can add ? my code is ; For example…

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.
400 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
592 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,189 questions
asked 2023-01-30T06:39:03.31+00:00
Harun Ergün 100 Reputation points
accepted 2023-01-30T14:58:47.01+00:00
Harun Ergün 100 Reputation points
1 answer One of the answers was accepted by the question author.

how can add validation 2 drowdownlist

The user comes and selects the city from the first dropdownlist. If the first value is selected from the second dropdownlist, I want it to give an error. I want to add validation but failed. Help me please ? Where is my mistake ? my code ; var…

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.
400 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
592 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.
147 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,189 questions
asked 2023-01-30T08:28:51.2766667+00:00
Harun Ergün 100 Reputation points
accepted 2023-01-30T14:57:54.8766667+00:00
Harun Ergün 100 Reputation points
1 answer One of the answers was accepted by the question author.

How can add HTML paragraph alignment

I have a paragraph with too many words in it. I want it to be left and right aligned. Like Microsoft Word (same as ctrl+D). How can I do this? First ; I want like this ; This is (Ctrl+D) Is there a parameter in html that I can do the same way? My code…

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.
400 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
592 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.
147 questions
ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,189 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,545 questions
asked 2023-01-30T12:16:04.8233333+00:00
Harun Ergün 100 Reputation points
edited an answer 2023-01-30T14:07:56.5566667+00:00
Viorel 82,646 Reputation points
1 answer One of the answers was accepted by the question author.

How can I use WeakReferenceMessenger instead of MessagingCenter in my iOS project?

I get the following message when I use MessagingCenter in my .NET 7.0 iOS project: [deprecated] class Microsoft.Maui.Controls.MessagingCenter Associates a callback on subscribers with a specific message name. CS0618: 'MessagingCenter' is obsolete: 'We…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
890 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.
6,950 questions
asked 2023-01-29T16:30:19.28+00:00
Kim Strasser 361 Reputation points
commented 2023-01-30T12:25:32.74+00:00
Kim Strasser 361 Reputation points
1 answer One of the answers was accepted by the question author.

how to get parameter name in c#?

public string BuildParameter(object[] para) { var parameters = ""; for (var i = 0; i < para.Length; i++) { if (para[i] != null) { …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,545 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
615 questions
.NET CLI
.NET CLI
A cross-platform toolchain for developing, building, running, and publishing .NET applications.
291 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.
955 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
483 questions
asked 2023-01-30T05:50:44.7+00:00
打玻璃 1,506 Reputation points
accepted 2023-01-30T09:17:44.13+00:00
打玻璃 1,506 Reputation points
1 answer One of the answers was accepted by the question author.

Check if two frames are overlapping in .net maui

is it possible to detect it when two frames are overlapping (even when they don't have the same parent)? I need it for my .net maui project (A game in .net maui) this is how I have the hitboxes and players set up (the Frames will get added into…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
890 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
615 questions
asked 2023-01-26T10:32:06.7033333+00:00
Mielesplayz 261 Reputation points
accepted 2023-01-30T07:53:20.1566667+00:00
Mielesplayz 261 Reputation points
1 answer One of the answers was accepted by the question author.

the taghelper do not rendered?

using Microsoft.AspNetCore.Razor.TagHelpers; namespace tag.Components { [HtmlTargetElement("pagination", TagStructure = TagStructure.WithoutEndTag)] public class PaginationTagHelper : TagHelper { …

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,545 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.
400 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
592 questions
asked 2023-01-28T01:27:55.3233333+00:00
打玻璃 1,506 Reputation points
accepted 2023-01-30T07:50:24.4733333+00:00
打玻璃 1,506 Reputation points
1 answer One of the answers was accepted by the question author.

How to marshal an array of fixed size structs from unmanaged to managed memory

.Net 7 Having an IntPtr (nint) pointing to an array of fixed size and blittable structs in unmanaged memory. Marshal.Copy does not seem to have any method like: Copy(myPointer, myStrcuctArray, 0, myStructArray.Length) (It accepts an array of int,…

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.
6,950 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.
955 questions
asked 2023-01-29T21:43:46.12+00:00
Magne 126 Reputation points
accepted 2023-01-30T07:33:53.36+00:00
Magne 126 Reputation points