Content
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 &&…


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…


.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…
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…


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


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 *…


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


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…
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…
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
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…


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…


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…


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] …
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…
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…


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 =…
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…


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:…


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?

