Content
Json bringing back unwanted properties
WebAPI Core (.Net 6) I have a Model class which contains multiple properties. The properties can have empty values. Only the ones i need should be produced. public class ClientFocus { public string? Item {get; set;} public string?…


I need to hold the selected ListView Item in a temporary variable.
I need to hold the selected ListView Item in a temporary variable so that the user can Cancel an Edit operation and the ListView Item will revert back to its original values. I can't understand why Temporaryselectedudf changes to the SelectedUdf value.…


How to fix "The target process exited without raising as CoreCLR started event. Ensure that the target process is configured to use .NET Core. This may be expected if the target process did not run on .NET Core"
My application console application is build on .net core 7 and gave error when running on docker container, several other console applications running properly but one gave problem. Docker container logs given below: Targer OS is linux. I have tried…


form responses showed in website
How do I make a website that uploads automatically the answers of a form?
How do I fix the error: "Unhandled exception. System.IO.FileLoadException: Could not load file or assembly 'dotnet-aspnet-codegenerator-design, Version=7.0.6.0, Culture=neutral, PublicKeyToken=adb9793829ddae60'."
The above error happens when I try to create a scaffold for the identity, I have installed all the necessary packages that are needed for code generation but it still keeps giving me the same output. I also tried rebuilding the project and restarting…


Xamarin Forms: Implement push notification tapping on android platform
I have implemented push notification on my Xamarin forms application using FCM. My code [Service(Enabled = true, Exported = true)] [IntentFilter(new[] { "com.google.firebase.MESSAGING_EVENT" })] public class FirebaseNotificationService :…


Maui android debugging exception in correct situation
Hello all in the middle of debug stepping in a correct situation suddenly I got this ex. what this mean and what I need to do. Thank you very much.


C# ASP.NET MVC - How to retrieve all values from a from that can have unknown input field count
I have a simple form, that allows the user to edit a drop down list that exists within another form. In this the user can view the current drop down list values, edit them, delete them or create more. This opens this form in a modal: Here you can edit…
ChannelFactory resolving an address for a different tenant
We have a multi tenant architecture in the cloud. I have noticed a strange behavior where often App1 of tenant 1 calls App2 of tenant 2. This is not a frequent behavior and happens few times a day. Below is a generic code snippet that calls App2 from…


Net Maui CollectionView How to do bindable property for orientation ?
custom collectionview is not working like that what is wrong with them ? <custom:TabsCollectionView Grid.Row="1" ItemSource="{Binding CartMenu}" AOrientation="Vertical" ASpan='3'/> …
Why are properties empty when converting to Json?
Visual Studio 2022 + all updates. WebAPI Core (.Net 6) Installed Newtonsoft.Json (latest version as of today) I have a Model class which contains multiple properties. The properties can have empty values. Only the ones i need and contain a value should…


How to install C# and .NET on Linux Mint 21.1
dotnet --version The command could not be loaded, possibly because: * You intended to execute a .NET application: The application '--version' does not exist. * You intended to execute a .NET SDK command: No .NET SDKs were found. What does…


I want add validation with phone and email
If the user wants to register with the same email and phone, I want to get a warning that this email and phone have been registered before. I tried a lot of Ajax code about this, but I was not successful. Can you help? @model…


How to create Relay command in Master Page ViewModel
MASTER PAGE(XAML) <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" …


I want a database change to be reflected in web forms page without polling the database
Hello I have a web page whose records are based on a database table. If there is a change in the database table I wish to get it reflected on my front end web form in vb.net code behind. I do not want my web page to be refreshed by a user interaction…


Blazor Server - downloading excel in the controller
Hi, In my Blazor Server application, I am trying to write data into Excel and download it in the controller. Here is the controller; var existingRecords = await _stockUniqueSerialPinUseCase.ExecuteAsync(customerList); if (existingRecords.Count > 0) { …


CreateRendererWithContext .net MAUI android
0 i am re using xamarin forms renderer in MAUI. while creating renderer with "CreateRendererWithContext" method getting exception. below is my code. using AndroidPlatform =…


.net maui change Android and iOS overview icon
In .net maui Android when the "Overview" button in clicked an Icon is shown. How do I change that icon ? On iOS how to change the ".NET" to something else ?:


How to use Key Vault reference locally in asp.net (framework) application
Key Vault reference works locally for DotNet Core apps (Functions, ASP.NET Core). But can we use Key Vault reference locally in ASP.NET (Framework) applications. E.g. In framework app, we read app setting values as follows: using…


System.NullReferenceException message in creating Entity Data Model in an MVC project
Hi everyone, I created a localdb sql server file(School.mdf) in the App_Data folder in an MVC project using .Net Framework 4.8. I then added a table(Student) with only two attributes for testing. I tried to add new ADO .Net Entity Data Model into the…

