what the "is" operator do exactly if the variable before it is a string and the one after it is a const string, in c#
Hello, I recently found about the "is" operator in C# and found that it sees if the variable is compatible for a data type or not but when I added to make this code. string s1 = "hi"; Const string s2 = "hi"; …
How Redirect To Not Found Without Change Url In Blazor .Net 8
Hi, How to redirect user to not found when page is not exists without change url in blazor ? Like this link : git not found
Why is the IOptionsMonitor OnChange callback method called twice instead of one time when monitoring XML config changes
I want to call another method every time the XML config file changes any value and is saved. This code works but the OnChange method is called twice each time: If I attempt to use the implementation of IDisposable on the OnChange then the code does not…
How do I save a file to SQL Server using Razor forms?
I have built a web application that connects to a local SQL Server. I would like to use the web form to save a file in the database. I am experiencing an error related to the model types and provider types. When I use a byte array type for the…
Why add days notice period to current date built in function C# not accurate add days correctly?
I working on a C# console app. I face an issue - the built-in add days function does not add days correctly when calculating notice period plus date today. How to solve this issue? Suppose I add 30 days to today's date: 12/01/2024 + 30 = 10/02/2024 12…
Is the Google components binding libraries for iOS still supported / maintained?
Nuget packages prefixed Xamarin.Google.iOS.* and Xamarin.Firebase.iOS.* are built from this repository: https://github.com/xamarin/GoogleApisForiOSComponents The native libraries these bindings are built on are 2+ years old and are becoming unusable.…
ASP.NET Identity library - delete user does not delete their claims
Hi all; I am using the ASP.NET Core Identity library in Blazor server side version 8. The library provides a page for a user to delete themselves from the system. When they are deleted - it does not delete any claims they have. How can I have it delete…
How to make speak stuff no selection by true or false if speak stuff is null or no values ?
I work on asp.net mvc web app I face issue i can't make check box no selection if value of speakstuff is null so i will not make default value false i need speak stuff when display for first time of user to display as null so how to change my code to…
How to implement remember me in the login page?
Hi All, How to implement the remember me? what I expect is if the user select the "remember me" then if they logged out and come back again they should not need to enter their user email and password. I use NetCore 6 C# below, the IsPersistent…
.NET Technology Stack latest Diagram
Hi. Please can someone point me to the latest (2024) .NET Technology Stack diagram? I have searched the web but found nothing about .NET Core and ML.NET in those diagrams. Thanks.
How to implement "Remember Me" option in a login page?
Hi, I want to have "remember me" option in my login page, how to implement it? any example that I can follow? Environment: ASP MVC NetCore 6 thanks
How to improve the role management in Blazor Server?
Hi, I am working on a Blazor Server application. I am using identity management. I have 2 issues to get help. In my application, I have these roles: string[] roles = new string[] { "Administrators", "User", "Accountant",…
How to display on a label a timer counting back 5 minutes ? the code is not working.
in the form1 designer I added a timer. i can see that it's getting to the tick event and execute the UpdateTimer but the timer itself does nothing it stay on 05:00:00 and never start counting backward. so the tick event does work when i start the timer…
Using tinymce RichTextbox to insert texts and images into database and display same on a web page
I am trying to insert written articles with descriptive images into database, so that when user open to reads, the user will be able to see images that support the article. Ultimately, I am trying to have almost the same thing as seen on this community's…
Filtering a ComboBox in a DataGrid based on another combobox in the datagrid in WPF C#?
In my Example Here i have a 3 ComboBoxes in a Datagrid displayoing Countries, Provinces and Districts respectively.How can i Filter the Provinces by Countries and Districts by Provinces in such a way that when the user selects a country he only gets the…
How to create and use element's MouseEnter event handler programmatically?
WPF, Net Core 8. I've read everything in the internet related to events, all MS docs and a C# book, but have no idea how to use it with Mouse events in WPF. How to implement this logic: create Border/Panel elements in C# (not XAML) create a custom…
Get administrative capacity when you use ServiceController.
Hi, As note: If you start/stop services. You will most likely use the ServiceController component in an administrative capacity. How to get administrative capacity when you use ServiceController. Thanks,
Error : Normalizing '_blazor' to ... in balzor .net 8
Hi, My website is worked correctly and it's web app blazor 8 but when run project i have this error in inspect element ? what is the problem ?
asp-append-version="true" in blazor .net 8
Hi, How to cache static files in blazor .net 8 ? we used asp-append-version="true" in last , but how cache these static files ?
Consuming ML NET cuda GPU trained model on a system without cuda GPU
Greetings. Am I able to train Object Detection model using Visual Studio Model Builder with local GPU (supports cuda) parameter and then consume the model on a system without CUDA GPU (only CPU)?