How to calculate years from two different date in ASP.NET C#
I have Employee Admission Date which is stored in SQL table. In the ASP.NET click event, i want to calculate and find the years from the Admission Date and Current Date. For example, Admission Date : 10-MAR-2023 Current Date : 28-APR-2024 condition is…
Community toolkit install is not working
I have had community toolkit installed on this project for quite a while and now it gives the following error when I am trying to update: Severity Code Description Project File Line Suppression State Error NU1605 Warning As Error: Detected package…
How to close keyboard in Android ?
In MAUI I am using this code to close android keyboard because every time user has to click on done from keyboard to close keyboard. I wanted a behaviour where if user click on anywhere in screen so it should close the keyboard. This behaviour is by…
Unable to reuse the same layout in a new form
Unable to reuse the same layout in a new form. I've created a CustomControl inherited from ContainerControl and added items in it. However, I'm encountering difficulties when attempting to use it in another form. I want to use the below in a new form. …
Blazor web app net 8 rendermode auto authentication
I am confused on how to add authorization to my components. In the client part I am using AuthenticationStateProvider and in the server part ServerAuthenticationStateProvider. Segum I've been looking at the documentation and other examples. My blazor app…
Fail to upload .Net MAUI application on Apple appstore
We have developed an application in .Net MAUI, we tried this application on Android and iPhone device. It works properly on both platform. Now we are trying to upload this application on Apple AppStore, but fails. We generate ipa file from Visual Studio…
converting Xamarin to .net maui.
Now that I completed coding my app using Xamarin, It appears that I should convert my app to .NET Maui. (due to Xamarin support being E.O.L. ) I found a Microsoft page that suggests adding ".NET upgrade assistant" via the extension but when I…
how do I uninstall Microsoft.NETCore.App 6.0.25 and Microsoft Microsoft.WindowsDesktop.App 6.0.25
I have remove .net using Add or Remove program but when I do dotnet --list-runtimes I still see and I am not sure how to uninstall them. Microsoft.NETCore.App 6.0.25 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App] Microsoft.NETCore.App 6.0.25…
how to export function in dll to aot?
I created .net class library to build dll and want to publish native aot and I write function public static MyClass { public static int MyFun(int n) { return n*n; } } I publish it to native aot to win-x64 but in dll there is no function why?
how do I find the working area of my uwp app in .net using C#
This is a simple question but I'm having a rough time finding an answer. What I want to find is the working area of my application. I'm working in Visual Studio 2022 and have created the basic project. Searches on the internet result in many answers…
Customize the EmailConfirmation and 2FA token expiration in .NET 8.0
Is there a way to extend the 2FA and Email confirmation token expiration timespan with email in .NET 8.0? I am using the Microsoft.AspNetCore.Identity and Microsoft.AspNetCore.Authentication classes to use the 2FA with…
Custom ApiController Model Binding type conversion error
According to the Model Binding documentation: In an API controller that has the [ApiController] attribute, invalid model state results in an automatic HTTP 400 response. So when I send an invalid type in the request body (e.g. int instead of string),…
Touch keyboard changes layout when switching between WPF TextBox controls
Hi, I'm experiencing a strange behaviour in a simple WPF app running on a tablet (Surface Pro 7, Windows 10.0.19043). The UI has several TextBox controls that have InputScope=Number defined. <Window x:Class="SimpleTouchWPF.MainWindow" …
How to view/show image from file server path on button click
i am developing asp.net application. i am uploading many image documents in file server path like example (\server2\prj1\picture1.png) At the same time, i want to view/show the same file (image document) on button click event. How to show this image…
Blazor Culture in the Route
Is it recommended to add the language (culture) in the route e.g. site.com/en/page-name or only page name is sufficient e.g. site.com/page-name? How to I change the culture to de-DE if you paste the URL like the following? mysite.com/de/home Thank…
Keyboard overlapping entry control in .NET MAUI - .NET 8 (Android)
Does anyone know how can I implement the soft keyboard on Android .NET MAUI? I tried doing like it's said in the docs and in stack overflow forums, but nothing seemed to work. Whatever I do, my keyboard is overlapping the entries from the bottom of the…
Visual Studio Designer Copy With Name
I created a new label. It came with "label1" name. I changed the name "label1" to "myLabel1". I'm copying this: "myLabel1" When I paste it comes as: "label1" It wasn't like this before. When I paste must…
Direct API POST method to another URL
Good morning, afternoon or night!! Dear all, I will need to be "listening" to an Access device that will be sending a Json in the POST Method. To do this, I created a (simple) API to do this monitoring and respond with a True or False. Problem:…
I've made an app I need a list of email addresses for internal and closed app testers to help me test my app for publishing from my google play console?
I've made an app I need a list of email addresses for internal and closed app testers to help me test my app for publishing from my google play console?
How to copy big file 5g with task and within impersonation
Hi, How to copy big file 5G from source to destination using impersonation: WindowsIdentity.RunImpersonated( ImpersonationHelper.Token Thanks,