Why when using filcesystemwatcher and dictionary with fileinfo it's throwing exceptions on wrong key and file not found ?
Link for the repository on github : https://github.com/chocolade1972/FileSystemWatcher The project size is 92 KB only compressed with winrar. At the top i init with new instance both filelist and dic variables. Then when starting watching…
Passing multiple parameters with MessagingCenter
Hi, I got this from the Microsoft KB that allows to pass a parameter through MessagingCenter MessagingCenter.Send<object, string>(this, App.ShowPINActivation, email_address); but how can I pass two parameters like this: …
How to use IFormCollection instead of IFormFile
I have a controller that used to use the IFormFile interface, and I could CopyTo the filestream using the FileName. IActionResult Upload(IFormFile files) { var infile = Path.Combine(env.ContentRootPath, @"wwwroot\images",…
VS 2022 C# ComboBox operations using WinForms. Adding data from SQL server and later capturing selected value.
I am looking the way to allocate data from SQL server table. get 2 columns (ProductID (int) and ProductName (string) from database table into ComboBox. show only product name. Capture selected value in drop down of comboBox. The trick is to get…
Issue in Implementing Windows Authentication and LDAP in .NET 6
Hi Team, We have a intranet web api hosted in Windows box (on prem) which is consumed by our Angular UI and we need to implement Integration Windows Authentication in the API side. I was looking into the MS docs (see below url) and noticed that there…
SAP crystal reports runtime engine for .net framework 4 installation issue in windows 11
I am not able to install SAP crystal reports runtime engine for .net framework 4(32 bit Version: 13.0.3.162) in windows 11(Version: 21H2 , OS Build: 22000.556). Error Message: Product: SAP Crystal Reports runtime engine for .NET Framework (32-bit) --…
Implementing request varification tokan
I have read some articles on preventing cross site requests within an webpage by using request verification token in MVC and ASP.NET Core application. But is there a way to implement this token in a classic ASP.NET application
Delete files when uninstall the application
If I try to uninstall the application I would like the files to be deleted, but if I uninstall the application and reinstall it the contents of the files remain. how could i solve? switch (Device.RuntimePlatform) { case…
How to utilize re-usable Razor component/view/page (Razor Class Library and ASP.NET Core 6 MVC) through plain html and Javascript?
Hi, I am developing a shareable widget by using Razor Class Library and Razor Component. I want to convert this code in the form of Razor Class Library and then I need to use it in plain html (with JavaScript). See the following url and…
Pass list of object from view to controller via jquery ajax
First I create a view model like this below public class policyDetailsViewModel { public class Rootobject { public int message_code { get; set; } public Data data { get; set; } } public class Data { public…
where is the problem in function?
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; namespace…
How to add and retreive value from appsetting.json or some other configs in Razor Component though Razor Class Library?
Hi, I need to add some configs like appsetting.json in Razor Class Library? And then I need to get the specific value from this config and need to use in Razor.Component .
WF4 how to enable or disable dropdown(enum) argument based on previous/other dropdown(enum) value
I have two drop down in my codeactivity property, I want to allow the user to select second drop down based on the first drop down selection. Please see my sample code : public enum Services { Human, Web } public enum ServiceType { Soap, …
How to Share the Data Amount Multiple Razor Components by using in Razor Page through Razor Class Library ?
Hi, I have developed a Widget by using nested Razor Component in Razor Page through Razor Class Library. Now I want to share the data among these nested razor components. How can I share the common data in it ?
Maui.Net Graphics
Hi I want to move from Xamarin and Skai Sharp to Maui.Net. How to start with graphics in Maui.Net I tried to create simple graphics app but I dont know how to start. This is XAML code <?xml version="1.0" encoding="utf-8"…
Forms Authentication with DirectoryServices - Your login attempt was unsuccessful. Please try again.
A VB.NET application that I inherited authenticates users via Forms Authentication and System.DirectoryServices to query Active Directory using LDAP. The app was originally deployed to IIS 6 (Windows Server 2008) but was recently migrated to IIS 10 on a…
How to copy Exif data from one image to another?
In Xamarin Forms I take a picture. At this point it has Exif information. Then I need to rotate it and reduce it's size. Now it has lost most of it's Exif information. Is there a way in Xamarin Forms to read the Exif data from the original image and…
Is it possible to Implement Azure Ad Authentication in webforms without cookie authenticationtype ?
Can we implement the below code without using cookies public void Configuration(IAppBuilder app) { app.SetDefaultSignInAsAuthenticationType(CookieAuthenticationDefaults.AuthenticationType); …
Command problem
Hi, I see that UserID0.Value is with the proper value 18 and there is the existing record with INT column user_id having the value 18. But it is not getting the record by the following command. Why? SqlCommand cmd = new…
Display all months from (today) and go back 14 months
I have a requirement to return a rolling 14 months to the app. I'm creating an WebAPI So, I need to go back 14 months from todays date. I have this so far, but drawing a blank: [HttpGet("[months]") //allows them to define the months to go…