1,622,784
questions
0
votes
1
answer
10
views
Handling large byte arrays in C#
I've a simple .NET Core Web API that processes large size documents (> 10 MB < 50 MB). Basically it reads a document from CRM like Salesforce processes it with Aspose and send the processed ...
0
votes
0
answers
11
views
How to add spinner to ASP.net while processing
I am using ASP.net Web forms
I have users register into my page
once they registered a 3rd pty code updates the database which can take between 1 sec and few minutes
I want to add a rotating spinner ...
0
votes
1
answer
23
views
I set up CORS in my backend minimal API and I have issues fetching data from the React frontend
As the title says, I set up a minimal WEB API in .NET8 with CORS, and the routes seem to be working fine on the backend, and even tested the CRUD operations with the REST Client extension in VSCode.
...
0
votes
0
answers
10
views
Blazor InputText Unable to Implement CSS for InputText
There is 1 issue with the InputText, which is that it is unable to implement the css from razor.css file. This works if implementing the styling directly but if it is not working if I am placing it in ...
0
votes
1
answer
29
views
Find all telephone numbers using RegEx
I am trying to extract all uk telephone numbers found in an email.
I have used a web based tool (RegEx101) and found a regular expression that checks if a string is a UK phone number:
/(^\+[0-9]{2}|^\+...
-2
votes
0
answers
30
views
How can a Winform display on multiple screen without any delay between screens? [closed]
With C# .Net 8 Windows Form, I need to show some video to multiple screens and there should be no time gap between screens.
For example, Contents on the Windows form A are some sort of videos and I'm ...
0
votes
0
answers
8
views
How to pass the search string from the input field to the query parameters, when the binded blazor component property has changed?
How can I change the request parameter in the URL when the user enters the parameter value in the imput text field?
Here is a simple sample of what I have:
@page "/"
@rendermode ...
0
votes
0
answers
13
views
DockPanelSuite float Document area
Sample setup, I have 5 tabs in the DockState.Document view, and 1 tab in DockState.DockRight
I have these 2 methods. The first floats the current active tab. It works fine. The 2nd is supposed to ...
0
votes
0
answers
12
views
x:Bind not working inside DataTemplate when binding a custom control property
In a WinUI3 project the below XAML ListView code works perfectly fine, the UI in UserHomeView gets generated and all of the properties and processes dependent on UserHomeViewModel get triggered and ...
0
votes
0
answers
15
views
Assignment and comparison of class properties without boxing
Consider the following scenario:
public interface ICloneable<T>:
ICopyable<T> where T : ICloneable<T>, new()
{
public T CloneTyped ();
}
public interface ICopyable<T>
...
2
votes
2
answers
77
views
How to turn decimal to byte array but it has to be lexicographically sortable?
As for double BitConverter.GetBytes(double) reversed returns array that if lexicographically sorted will be sorted the same as (positive) doubles. Can the same be done for decimal?
For example:
var ...
-4
votes
0
answers
42
views
Bunch of "non-nullable" warnings appeared out of nowhere in c#
I just found that I had a lot of warning like this one:
Warning CS8625 : Cannot convert null literal to non-nullable reference type
Or
Non-nullable field 'xxxxx' is uninitialized. Consider ...
0
votes
2
answers
27
views
i want this to make an error message if the user isnt using the right format, but it just displays this
It just displays this instead of the error warning I made:
Here is how I want it to be:
And here is my code:
Console.Write("Masukkan Tinggi Segitiga: ");
int tinggi = Convert.ToInt32(...
0
votes
1
answer
39
views
Azure AD client credentials generated token does not have claims
I have an app registration in which test.user is my scope. In API permissions, I have delegated permissions for test.user scope.
In Postman, I tried like this:
Grant_type : client_credentials
...
-1
votes
0
answers
31
views
Windows form buttons fail to launch resources [duplicate]
I created a windows form using C#, the form contains buttons and labels and a tab control.
Every button and label has different functionality. For example, some buttons open different browsers, and ...