Content
Generate a simple message from controller (blazor page not for razor view)
In a Blazor server application, I have implemented user authentication via cookie. In the Blazor page (not razor view) I have created a form with email and password entries as well as a button for sending the data. The method is Post and is run on the…


Sum Value of data table rows having same cost center rows
Hi Everyone, I need a logic to implement for the below. I have a C# console application. In that, I am generating a report. I have a requirement to sum same rows where first column value is same. I need a generic logic. Number of columns may increase…


Reading form fields after submit (POST) in Blazor Server?
I have a login form in Blazor Server App and use POST to send login data (email and password). <form id="LoginForm" Model="LoginModel" action="cookie" method="post"> …


seralize object returns empty file after save
Hello All, Morning: I'm reading a XML file to fill the datagrid have no issues; then i modify the some values in the datagrid then save back to the xml file without changing the structure of the file. When i tried to seralize the file, empty file is…
How to fix Exception while executing Azure function to write into Azure Table Storage
I'm currently trying to create a simple Function with C# writing into Azure Table Storage. Using the learn.Microsoft-Documentation "Connect Azure Functions to Azure Storage using Visual Studio Code" I already built a Function writing in Azure…


How to know if a platform/device will have the required dependencies to run a project?
Hi all, I am learning C# through MS Learn and it's going great so far. My mind does wander to possible issues throughout due to past issues with learning other programming languages like Java and Python. One concern I have is whether or not a project…


WPF Mousemove is a noticeable lag
I am making a UserControl called VolumeScrollBar to control the volume a video player I am working on. Now the problem I am having is when I slide my SwitchPath it moves noticeable slower than my mouse. How can I fix this ? note: everything is working…


Where is debug start action options in a C# DLL project for Visual Studio 2022
It seems that with the new interface for "debug profiles UI" in Visual Studio 2022, I can no longer find the start action options…


Best options for creating modern C# database programs
Hello, I have been using Microsoft Access for a while to create programs for small business activities. I would like to create more modern programs using C# to take advantage of the new Microsoft technologies for the front-end and back-end database. What…
How can I build my code? The button start without debugging is disabled
I looked about 10 youtube installation of VS 2022 films. In all the films the installation was succesfully ended with the openeing of the console window with " Hello World" . Apparently I do something different but I don´t understand…


Basic C# Console Application template
I am new to C#. I am confused on how to initiate a C# console application. I tried some examples except none of them seem to work. The format of a C# Console Application has changed a lot recently, so I don't know how to start. Could someone help get me…


Logout (delete Auth-Cookie) only possible via form!
I have a Blazor server application (see my post here: https://learn.microsoft.com/en-us/answers/questions/1164837/aspnet-authentication-works-but-value-for-user-ide). Now I have implemented a cookie authentication. This works very well via a login and…


C# Server, Client, Duplex mode
Hello, I'm looking for a good example to exchange this between server and client. Both should be able to make unsolicited inquiries. Duplex operation. Who can help me, who can post a good example? IP="127.0.0.1" Port="8029" …


How to give user to only access his user profile and block other all folders for him in windows 10
Anyone know how to give user to only access his user profile and block other all folders for him in windows 10


C# Events and Delegates - when should I take what?
Hello, I'm looking for a correct way to handle events and delegates. Do you have a good overview, a good example? When is an event enough, when do I have to switch to delegates? If I trigger an event and want to pass a complete object, then I need a…


How to ignore ETag checking and fix this error
I read from and write to blob content in Azure blob storage. File is being changed (new content is getting appended to the file) at the same time while it is being downloaded. I get error in the below stream.Read() line. Which I believe is because of…
Intent Filter / DeepLink .Net MAUI
I want to implement an application that will be viewable in my application using Intent Filter. I added in the MainActivity.cs file Filter Intent [IntentFilter(new[] { Intent.ActionView }, Categories = new[] { Intent.ActionView, Intent.CategoryDefault,…


How to read a file from external server
Hi I want to read csv file from the following URL (display only rider name) [http://www.votrecourse.com/medias/xml/?C=M;O=D/] file name = timetrial.csv pls help me in this.


UWP CreateOutputReport failed to create report ID
The following code has an error, System. Exception: "The data is invalid. The specified report type is not present. What is the reason? Error statement: var outputReport = hiddevice.CreateOutputReport(0); The handle was opened, but the output…
Problem querying JSON using LINQ when there are semicolons in the name tag
I'm trying to work with a Json file from an outside source. They put semicolons and additional data in some the field names. I'm trying to query the data using LINQ and having problems. Is there a way of specifying wildcards in LINQ queries? I'm…

