How to create a Setup Project for Windows Forms application in Visual Studio 2019

Why we need a Setup project? Setup projects are used to create a installer package for the applications we developed. Setup project will generate .EXE and/or .MSI files which can be installed o ...

Encrypting and Decrypting Configuration Sections in web.config file

Usually in in ASP.NET applications the Web .config file stores sensitive information. Examples of sensitive information include usernames, passwords, connection strings, and encryption keys. W ...

Access Modifiers in C# Programming

What is an Access Modifier? In Object oriented Programming, all types and type members have an accessibility levels. The accessibility level controls whether they can be used from other code in y ...

How to get current page URL in asp.net website using C#?

In this article, I will give some examples to how to get current page url using asp.net and c#. "Page" class will provide the properties to get all details about the current page like Page Name, Page ...

How to read response from url using HttpClient in C#

System.Net.Http namespace provides a class (HttpClient) for sending HTTP requests and receiving HTTP responses from a resource identified by a URI. HttpClient is useful when downloading large amou ...

How to configure Log4Net for your application

The Apache log4net library is a tool to help the programmer output log statements to a variety of output targets. In case of problems with an application, it is helpful to enable logging so that the ...

Linq - Transform DataTable to Dictionary using C#

When we need to transform 2 columns of data table to a dictionary, we can use LINQ. Dictionary is a Key Value Pair collection and Key should be unique. The generic method ToDictionary has 3 par ...

WIQL Query to get all Child and sub-Child work items in C#

WIQL stands for Work Item Query Language, and it is used to query work items from Azure DevOps. Using this query we can query Work Item Details or Related Work Items. The WIQL syntax is used to execu ...

Remove rows from datatable based on a List using Linq

I have a DataTable with some data and a exclusion List like below ExamData (datatable) |Exam|Year Completed| |AZ-900: Azure Fundamentals|2019| |DP-900: Azure Data Fundamentals|2021| ...