Which is better to use, DbContext.Add() or DbSet.Add()?
Hi, If you allow, I would like to ask a question. In CRUD operations, we can add to the database in two ways: DbContext.Add(object) and DbSet.Add(object). Which one is more correct to use? public class Context : DbContext { public DbSet<Category>…
VirtualizingStackPanel Scrollviewer height
I am working a uwp app where i used ListView with VirtualizingStackPanel . In my case i am trying create an alternatives for CVS ListView so each item has a ItemsControl (choosen this because it consume less memory and ScrollViewer). Now if i want…
Hi, i want to register my call of duty mobile game and when i manually entered they key the authenticator is looking for the secret key? Where can i get it from?
when i manually entered they key the authenticator is looking for the secret key? Where can i get it from? Thanks
What is the best way to show the loader while uploading the file in gridview
I am using gridview for displaying and inserting new records. i'm using loader wherever it is required in the gridview. it is working fine. i'm trying to use animation loader for specific upload column in gridview. will it possible to show the loader…
How to fix Signature validation failed when trying to validate an access token of Microsoft Entra ID
Hi, I'm trying to validate my access token signature from Microsoft Entra ID, as you can see in the below image, the "kid" attribute is different from the keys retrieved in the second image below that were retrieved from…
How to access/Update Group Policy Objects using C sharp
Hi, We are referring below link to access group policies programmatically using c sharp. https://learn.microsoft.com/en-us/previous-versions/windows/desktop/wmi_v2/class-library/gpo-class-microsoft-grouppolicy This is sample code which we have written…
Use same VisualStateGroup in all different ListViewItem style
Hello everyone. I'd like to make my VisualStateGroup unique for all ListViewItem, so that any ListViewItem style, even different, can use the same VisualStateGroup, without repeating in the ListViewItem style. Declare the VisualStateGroup once and all…
How to hide the modal popup if another modal popup is open in ASP.NET
I am using multiple modal popup window (bootstrap) in the gridview. one is for onclick (link button) second one is for onclick (image button) i have used two different design popup model (dialog). i am facing the issue, when i click linkbutton, it is…
Make calendar in datagridview c#
Good day! Please take a look the image below. I want to input day from June to July but no color displayed from start to end date. And here my code. int offset = 4; foreach (DataGridViewRow row in dataGridView1.Rows) { …
System.Exception: 'Days between ViewStart and ViewEnd should be between 1 and MaximumViewDays' in c#
I want to select multiple days in my monthView1, but the error message say."System.Exception: 'Days between ViewStart and ViewEnd should be between 1 and MaximumViewDays'" and here my code. private void monthView1_SelectionChanged(object…
Confused about how to use Microsoft.AspNetCore.SystemWebAdapters while trying to port from old ASP.NET website to new ASP.NET Core web app
https://stackoverflow.com/questions/78589165/confused-about-how-to-use-microsoft-aspnetcore-systemwebadapters-while-trying-to Can some one tell me how to approach this?
Unable to get access token for microsoft store service
Hi, I am building an app for the Microsoft Store. I require the app's server to connect to the microsoft store to validate purchases. I'm using the Microsoft.StoreServices API provided at: https://github.com/microsoft/Microsoft-Store-Services Basically…
Unable to connect to server in Visual Studio 2022
Description of the problem: When trying to connect to a remote server using Visual Studio 2022, I receive the following error: System Information X A service error occurred. I have already searched for help online, but I have not…
How to set up WinUI3 applications to run as administrators
I'm begging to write WinUI3 application. Administrator privileges are required for certain functions. In the Win-form program, simply configure the following in the app. manifest <requestedExecutionLevel level="requestAdministrator"…
i can't use sql in winform c#
Severity Code Description Project File Line Suppression State Error CS1069 The type name 'SqlConnection' could not be found in the namespace 'System.Data.SqlClient'. This type has been forwarded to assembly 'System.Data.SqlClient, Version=0.0.0.0,…
Get data with post method using webclient
Hello There's a POST sample at the bottom of this page: https://ws.interfax.net/admin.asmx?op=GetAccountPPCardsBalance2 Sample HTTP POST request and response. The placeholders shown need to be replaced with actual values. POST…
CA1416 Warning after upgrading from .NET Framework 4.8 to .NET 8 with Windows Forms
Hello, I recently upgraded my project from .NET Framework 4.8 to .NET 8 and I’m using Windows Forms. Although I’m not getting any errors, I’m seeing some warnings that I would like to resolve. One of the warnings is CA1416, which indicates that…
convert letters increase by 1
Hello, Mask_range="ABCDEFGHJKLMNPQRSTUVWXYZ" Not allowed I and O NewValue: AA AB AG AH BA **Input** NewValue1: AB AC AH AJ BB **Output** NewValue2: …
PDF File not opening in modal popup in asp.net using embed
I am unable to open the pdf file which is located in file server path through modal popup. pls. find below code. <script type="text/javascript"…
Queries with EF Core causes 'Cannot continue the execution because the session is in the kill state'
Some EF Core queries are throwing the following error in our code : Cannot continue the execution because the session is in the kill state. Une erreur grave s'est produite pendant la commande actuelle. Les résultats devront être supprimés, le cas…