Microsoft Q&A

.NET

13,038 questions

Microsoft Technologies based on the .NET software framework.

Browse all .NET tags

13,038 questions with .NET-related tags

Sort by: Updated
1 answer

LINQ OrderByDescdending for date field is not working razor pages

Hi, i want to display records based on booked dates. For that i used OrderByDescending in LINQ query, but it is not sorting based on date field. ManageBooking = await _context.ManageBooking.Where(e => (e.BookingDate >= DateTime.Today &&…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,586 questions
asked 2023-02-03T06:59:51.21+00:00
Blooming Developer 196 Reputation points
answered 2023-02-05T22:45:55.7766667+00:00
Bruce (SqlWork.com) 28,276 Reputation points
1 answer

Can we use our website SSL certificate to secure our Azure Active Directory App

I created a new ASP.NET Core 6.0 MVC web application using Visual Studio 2022, and I define it to use Azure AD for authentication, as follows: Then I was asked to create an owned application, so I created one named "ad" as follows: Inside…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,586 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
611 questions
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,721 questions
asked 2023-02-05T21:28:04.8666667+00:00
john john 681 Reputation points
answered 2023-02-05T22:44:04.4066667+00:00
Bruce (SqlWork.com) 28,276 Reputation points
0 answers

.Net Maui, how to run method after page is shown?

Hi, I am trying to find a way to run a method after a contentpage is showing on the screen. OnAppearing() does not work as it fires before the page is actually loaded. Is there any way to do this without using a timer? It seems strange there is no built…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
904 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,007 questions
asked 2023-02-05T22:31:22.9633333+00:00
Phunction 176 Reputation points
3 answers

How to create environments with appSettings?

In previous projects i could click the Configuration or Debug menu (in the top bar) and set a new Configuration. This was displayed when i expanded web.config and i could use this to change environments to use different database connection strings…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,586 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,007 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
611 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
632 questions
.NET Standard
.NET Standard
A formal specification of .NET APIs that are available on multiple .NET implementations.
484 questions
asked 2023-02-03T09:02:57.8733333+00:00
Mr Edge 121 Reputation points
commented 2023-02-05T21:15:48.7533333+00:00
Karen Payne MVP 29,236 Reputation points Microsoft MVP
0 answers

Interface in .NET MAUI

Hi, How can Implement Interface in .NET MAUI? I want to implement the below to access the App's Settings for both iOS and Android. Thanks, Jassim

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
904 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,007 questions
asked 2023-02-05T20:43:34.63+00:00
Jassim Al Rahma 1,126 Reputation points
1 answer

What is the limit of int?

Hi all. Looks like there's something I don't know... Net SDK 6.0.405, ASP Net Core 6.0.13. But what is the real limit? https://learn.microsoft.com/ru-ru/dotnet/csharp/language-reference/builtin-types/integral-numeric-types I use: int sqr = number *…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
632 questions
asked 2023-02-05T13:04:26.79+00:00
Scratchy Fo 0 Reputation points
edited the question 2023-02-05T20:40:04.15+00:00
Reza Aghaei 3,766 Reputation points Microsoft MVP
1 answer One of the answers was accepted by the question author.

Installing components for developing ASP.NET Pages with VB.NET

Hi there can someone tell me which individual components I need to install for asp.net page for vb.net.  I have forgot which component I Need.   Thank you Mathew

.NET
.NET
Microsoft Technologies based on the .NET software framework.
632 questions
asked 2023-02-04T18:51:45.4933333+00:00
mathew butterfield 21 Reputation points
commented 2023-02-05T17:35:27.4766667+00:00
mathew butterfield 21 Reputation points
1 answer One of the answers was accepted by the question author.

What is the recommended way of passing parameter info between tabs in a Shell app using MVVM?

I've got a Shell app (I'm not targeting mobile if it makes a difference) that has a main page where the user picks an item from a collectionview, and some strings are passed to the first tab in a TabBar. So, the user is either seeing the MainPage or a…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
904 questions
asked 2023-01-21T23:37:31.07+00:00
TerryH 20 Reputation points
commented 2023-02-05T17:32:25.3933333+00:00
TerryH 20 Reputation points
0 answers

BackgroundService Serilog how to email?

Hi, In my background service, I would like to send error logs. Although there is an error, the email sink does not work. The error is being written to the file and mssqlserver successfully. Can you please share your experiences? Here is the…

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,007 questions
ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,586 questions
asked 2023-01-31T14:40:53.22+00:00
Cenk 686 Reputation points
commented 2023-02-05T15:58:23.4+00:00
AgaveJoe 17,296 Reputation points
0 answers

What are the best practices for optimizing the performance of an ASP.NET MVC web application?

i am facing issue optimizing EHR application built on ASP.NET

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
1,201 questions
asked 2023-02-05T15:02:07.36+00:00
xmax11 0 Reputation points
edited a comment 2023-02-05T15:35:48.1333333+00:00
AgaveJoe 17,296 Reputation points
0 answers

Every time I try to access the API token it throws an error.

Hi, it's like that every time I try to post something to the API from Nextjs over to the API with Token (Auth) on it. then it makes an error. If I use swagger or postman and take the same token as I use in nextjs. Then it also makes errors. Errors can be…

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,007 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.
150 questions
asked 2023-02-05T10:35:04.07+00:00
Jesper Petersen 0 Reputation points
edited a comment 2023-02-05T14:11:30.8066667+00:00
AgaveJoe 17,296 Reputation points
1 answer

How to set up 2-factor authentication if you don’t have a code or QR Code? And how to get it restored if it won’t restore?

Hey, for anyone who knows what to do here, I really need help. Since I had gotten a new phone 2 days ago, and everything, such as my apps, as well as my Microsoft Authenticator app, and when I tried signing in to my Work or School account, it kept…

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,721 questions
.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.
17 questions
asked 2023-02-05T11:56:05.2033333+00:00
Ailis Abba 0 Reputation points
answered 2023-02-05T13:02:31.86+00:00
Marshaljs 26,736 Reputation points
4 answers

How to fix Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine In accessdatabaseengine 2016

Team, Kindly please help me to figure out issue regarding Microsoft.ACE.OLEDB.12.0 provider is not registered on the local machine I just updated ACCESS DATABASE ENGINE 2010 to ACCESS DATABASE ENGINE 2016 version in my system. so please help…

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,007 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
632 questions
asked 2021-07-13T16:59:19.737+00:00
Sagar Pithadiya 1 Reputation point
commented 2023-02-05T12:23:06.85+00:00
Dmitry 'Bakuretso' Denisov 0 Reputation points
0 answers

EF Core query for a specific condition in related entities and update parent entity

Hello there, In my Blazor Server application, I have Order and Order Details entities which are related as you can imagine. They both have their own repositories. public class Order { public int Id { get; set; } [Required] …

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
795 questions
Entity Framework Core
Entity Framework Core
A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
425 questions
asked 2023-02-04T19:08:18.7033333+00:00
Cenk 686 Reputation points
edited a comment 2023-02-05T11:54:42.3633333+00:00
AgaveJoe 17,296 Reputation points
0 answers

how to use blazor webassembly in razor pages?

how to use blazor webassembly component in razor pages? if I create Count in webassembly how to use it in razor pages? if I do not open that page do not load dll If I open that page then load it. /Pages/Count.cshtml with component Count If I do not open…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,586 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
611 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.
408 questions
asked 2023-02-03T02:56:39.31+00:00
打玻璃 1,526 Reputation points
commented 2023-02-05T09:40:00.4+00:00
打玻璃 1,526 Reputation points
0 answers

C# UWP Printing "Keine installierten Komponenten gefunden. (Exception from HRESULT: 0x800F1000)" (No installed components found.)

I want to print in my UWP App. I create a SortedList of RelativePanels which i fill with controls. The PrintPreview appears correct with the first RelativePanel of the SortedList. But when i want to switch to next PrintPage, this means the next…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
632 questions
Universal Windows Platform (UWP)
asked 2023-02-05T08:30:00.67+00:00
Markus Schertler 41 Reputation points
1 answer One of the answers was accepted by the question author.

How to save login state when close browser?

when signed HttpContext.SignInAsync(claimsPrinciple); when I close the browser the cookie is not valid and I need login again. builder.Services.AddAuthentication("Cookie").AddCookie("Cookie", options => { options.Cookie.Name =…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,586 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.
408 questions
ASP.NET MVC
ASP.NET MVC
A Microsoft web application framework that implements the model-view-controller (MVC) design pattern.
611 questions
asked 2023-02-04T00:18:52.4966667+00:00
打玻璃 1,526 Reputation points
accepted 2023-02-05T06:24:51.9433333+00:00
打玻璃 1,526 Reputation points
0 answers

Button click event is not firing

Greetings again dear experts. I have an .aspx page with two sections One section allows our users to enter records displays existing records for update. The second allows users to preview the records, whether insert or update before submitting to the…

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.
408 questions
VB
VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
1,838 questions
asked 2023-01-30T04:06:30.6633333+00:00
Simflex 81 Reputation points
commented 2023-02-05T05:13:58.0533333+00:00
Albert Kallal 3,451 Reputation points
5 answers One of the answers was accepted by the question author.

Azure B2C AD with thousand subdomains

I have MS Azure B2C AD login setup in Blazor Server. The shared URL is https://login.subone.dev.mymaindomain.com. The redirect URL is https://login.subone.dev.mymaindomain.com/signin-oidc. It works perfectly. I have added another site:…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
795 questions
Azure Active Directory External Identities
Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
12,721 questions
asked 2023-01-11T17:38:54.09+00:00
Andrey Kuznetsov 40 Reputation points
answered 2023-02-05T04:02:06.9566667+00:00
Bruce (SqlWork.com) 28,276 Reputation points
1 answer

Copying code from documentation and license

When copying the code from the documentation (e.g. https://learn.microsoft.com/en-us/aspnet/core/web-api/handle-errors?view=aspnetcore-6.0) do you have to specify in your code where the given code came from and refer to the appropriate license?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
2,586 questions
asked 2023-02-04T19:52:04.5866667+00:00
Jakub 0 Reputation points
answered 2023-02-05T03:55:15.74+00:00
Bruce (SqlWork.com) 28,276 Reputation points