23,901 questions with .NET-related tags

Sort by: Updated
1 answer

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…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,257 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.
10,255 questions
asked 2024-04-28T17:11:24.31+00:00
Gani_tpt 1,506 Reputation points
answered 2024-04-28T20:05:49.37+00:00
hossein jalilian 2,770 Reputation points
2 answers

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…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,871 questions
asked 2024-04-17T13:38:10.5+00:00
Lloyd Sheen 1,376 Reputation points
commented 2024-04-28T19:56:32.6333333+00:00
Lloyd Sheen 1,376 Reputation points
0 answers

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…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,379 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,871 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.
10,255 questions
asked 2024-04-28T16:28:31.78+00:00
Pratap Singh, Ayush 20 Reputation points
commented 2024-04-28T19:39:39.48+00:00
Udaiappa Ramachandran 726 Reputation points MVP
0 answers

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

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,830 questions
asked 2024-04-28T19:18:13.5266667+00:00
Vignesh 0 Reputation points
2 answers

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…

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,391 questions
asked 2024-04-26T09:26:54.0033333+00:00
Ángel Rubén Valdeolmos Carmona 586 Reputation points
commented 2024-04-28T16:44:49.1866667+00:00
Bruce (SqlWork.com) 56,036 Reputation points
1 answer

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,379 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,871 questions
asked 2024-04-26T14:24:36+00:00
Bhushan 0 Reputation points
answered 2024-04-28T16:35:53.1+00:00
Bruce (SqlWork.com) 56,036 Reputation points
1 answer

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…

Xamarin
Xamarin
A Microsoft open-source app platform for building Android and iOS apps with .NET and C#.
5,296 questions
.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,379 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,611 questions
asked 2024-04-28T16:23:24.6166667+00:00
tim 100 Reputation points
answered 2024-04-28T16:31:36.57+00:00
Bruce (SqlWork.com) 56,036 Reputation points
1 answer

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,167 questions
asked 2024-04-27T21:26:07.1366667+00:00
David Ghoussoub 21 Reputation points
edited an answer 2024-04-28T16:27:58.46+00:00
Bruce (SqlWork.com) 56,036 Reputation points
1 answer

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?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,379 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.
10,255 questions
asked 2024-04-23T02:04:43.3933333+00:00
mc 3,681 Reputation points
edited an answer 2024-04-28T16:22:18.2966667+00:00
Bruce (SqlWork.com) 56,036 Reputation points
2 answers One of the answers was accepted by the question author.

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…

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,379 questions
Universal Windows Platform (UWP)
asked 2024-04-24T13:23:16.3+00:00
Joe Babb 60 Reputation points
commented 2024-04-28T16:21:03.9766667+00:00
Joe Babb 60 Reputation points
1 answer One of the answers was accepted by the question author.

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,167 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.
10,255 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.
297 questions
asked 2024-04-27T00:03:30.5266667+00:00
Francisco A. Henríquez N 0 Reputation points
accepted 2024-04-28T13:56:07.8566667+00:00
Francisco A. Henríquez N 0 Reputation points
2 answers One of the answers was accepted by the question author.

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

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,167 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.
10,255 questions
asked 2024-04-24T10:30:29.13+00:00
iKingNinja 60 Reputation points
accepted 2024-04-28T11:08:20.8766667+00:00
iKingNinja 60 Reputation points
0 answers

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

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,673 questions
asked 2024-04-28T10:37:17.14+00:00
Sergey Efremov 0 Reputation points
1 answer

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…

ASP.NET
ASP.NET
A set of technologies in the .NET Framework for building web applications and XML web services.
3,257 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.
10,255 questions
asked 2024-04-27T18:06:29.1133333+00:00
Gani_tpt 1,506 Reputation points
commented 2024-04-28T07:04:40.8266667+00:00
Gani_tpt 1,506 Reputation points
1 answer

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…

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,167 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.
1,391 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.
297 questions
asked 2024-04-26T18:27:26.8766667+00:00
Kuler Master 246 Reputation points
commented 2024-04-27T17:51:27.7266667+00:00
Kuler Master 246 Reputation points
0 answers

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…

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,871 questions
asked 2024-04-27T15:02:02.76+00:00
ALEXANDRUSTEFAN CRACEA 0 Reputation points
0 answers

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…

Windows Forms
Windows Forms
A set of .NET Framework managed libraries for developing graphical user interfaces.
1,830 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,611 questions
asked 2024-04-27T05:37:43.91+00:00
Doğukan Topaloğlu 0 Reputation points
edited the question 2024-04-27T13:27:28.2033333+00:00
Doğukan Topaloğlu 0 Reputation points
0 answers

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

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,379 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.
10,255 questions
asked 2024-04-27T13:11:19.82+00:00
Marcelo Nogueira 20 Reputation points
0 answers

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?

Universal Windows Platform (UWP)
Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,673 questions
asked 2024-04-27T10:20:24.1833333+00:00
Luke Ferguson 46 Reputation points
4 answers

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,

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,379 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
2,871 questions
asked 2024-04-18T08:06:36.18+00:00
Dani_S 2,726 Reputation points
commented 2024-04-27T09:00:28.5566667+00:00
Dani_S 2,726 Reputation points