Content
Taking too much time to Load all files from the folder in ASP.NET Web page.
I am loading the files from the server folder in a web page. But, the head ache is, it's taking too much time to load all the files from the specific folder. Hardly it will be taking 30 to 45 mins to load all the files. End user can't wait till load all…
Different dialog opening position behavior when starting application from Explorer vs. Command Line/VS/...
Hello, we have noticed a problematic difference in the automatic positioning of modal dialogs in our Windows application when using multiple monitors: When our application was started from cmd.exe, PowerShell or a different application (like Visual…
How to change the UI when the model's view property changes?
Hi all. Recently I started to study the mvvm pattern and ran into a problem. How to change the UI when the model's view property changes? There is a model public class Setting { public string AliasCertificate { get; set; } =…
Net maui runtime loading problem ?
I have created languageconverter as above binding from C# listing...Firstly binding values by Text="{DynamicResource Key=welcome}" like that.. it is working as expected but when loaded page with custom collectionview is not changing language…
How to check if the record exist with same value in the database before insert
Hi, In my Blazor Server application, I am inserting a list of data into a database as follows; public async Task AddStockAsync(List<GameBank> gameBank) { await _oyunPalasContext.GameBanks.AddRangeAsync(gameBank); await…
Net Maui carouselview time span problem
All working fine but check and please correct the first image show and quickly passing second image must be same as the others time span .. how we can solve it? Thanks public Carousel() private void Carousel_Loaded(object sender, EventArgs e) { …
How to bind asp-items to the model in a select element appended by js dynamically?
$("#List").append("<tr>" + "<td> <select name='dm' asp-items='"+Model.dmdata+"'>" + "</select></td>" …
Using MS Graph to send email from singe predefined/pre-set mailbox within .net web application
We need our application to send emails via MS Graph using a set single mailbox. I have the following, but this is not working, with the following: 'Exception of type 'Microsoft.Graph.Models.ODataErrors.ODataError' was thrown'. Digging into the details…
How to use .net framework
************** JIT 调试 ************** 要启用实时(JIT)调试, 该应用程序或计算机的 .config 文件(machine.config)的 system.windows.forms 节中必须设置 jitDebugging 值。 编译应用程序时还必须启用 调试。 例如: <configuration> <system.windows.forms jitDebugging="true"…
Entity Framework - Db design suggestion
I have two models with many-to-many relationship: public class Person { public int PersonId { get; set; } public string Name { get; set;} public virtual ICollection<Hobby> Hobbies { get; set; } = new List<Hobby>(); } and public…
How to make a mapping from c# method to a SQL function
Goal: Get value from DBFunction TestBool by using user-defined function mapping (EF UDF binding) Problem: I don't get enough information about how to make the DbFunction TestBool (C# code) to be working. What part of the code am I missing. I need a…
No forms appearing in custom template VS 2022 Mac or PC
I have been looking over the material for the new templating engine, https://learn.microsoft.com/en-us/dotnet/core/tutorials/cli-templates-create-item-template and https://github.com/dotnet/templating/tree/main, and have created a .template.json file…
Why is Select().Contains() ok while Any() is not?
Hi all; I first tried the following code: var statesIndirectDelete = await States .Where(s => deletedCountries.Any(c => c.Id == s.CountryId)) .ToListAsync(); and that gave me the error: System.InvalidOperationException The LINQ expression…
CollectionView template not support RTL
Hi, CollectionView template not support RTL. I attached the file:עברית.txt Please see the code: The results is: txt.עיברית <CollectionView ItemsSource="{Binding Data}"> <CollectionView.ItemTemplate> …
How to get the system installed font family in XForms application based on the platforms
Please help me to get all installed fonts in XForms platforms(android,iOS and UWP). I have seen so many articles to use System.Drawing.Text but did not find any references. So, please help me to get a list of all installed font families for the combo box
Difficult to Paste Copied Value into Input Text Field for Email or OTP on Azure B2C authentication Page while testing on iOS Device.
We are developing an app for a user. User can access the app after successful registration. For the registration, we have integrated AZURE B2C Sign Up Policy. Everything is integrated successfully and working fine, but When any user who is using iPhone,…
Xamarin.iOS Visual Studio 2022 Archive failing (Cardinal Nuget)
I specify and advance that I am able to run the app in Debug, it works fine and i can Distribute the app too. After Cleaning the project and rebuilding it, I'm trying to publish my Xamarin iOS App (In Release iPhone myApp.iOS) and i am getting this…
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. Below is a generic code snippet that calls App2 from App1. Logging of addresses from App1 shows the correct values.…
How can I exclude transitive dependencies that are not needed in the project when publishing my application?
Hi there, I'm building my first real c#.net app using Windows Forms and I used ChatGPT a lot for this as I'm only using Visual Studio Code and have no good way to kickstart my project in any other way. This all worked fine and I came to a point where I…