ASP.NET - Minify Code Tutorials

BMI calculator formula in in C#

2021-10-03 ASP.NET

BMI calculator formula in in C#:- How to calculate BMI First, let's cover the calculation: Divide your weight (in kilograms) by your height (in meters). Divide the answer by your height again to get your BMI. So the body mass index formula is as follows: BMI = weight / height²


Create A Windows Service In Asp.Net C#

2020-04-01 ASP.NET

Create A Windows Service In Asp.Net C# You can start, stop, and pause a service from here by right click on the service. Windows service is a computer program that runs in the background to execute some tasks. If you open your Task Manager and click on the Services tab, you will see hundreds of services running on your machine. You can also see the statuses of these services. Some examples of Windows services are  check emails, print documents, SQL Server agent, auto-update of Windows, file and folder scanning and indexing and so on.  Some services are running, some have paused, and some have stopped.


How to convert datatable to json format in c#

2020-02-02 ASP.NET

Convert Datatable to JSON C#: This article explains how to convert DataTable to JSON string in C#. ex. serialize DataTable to JSON array in C#. For example, let’s say you have SQL database and now want to return SQL data to JSON in C# application ex. how to return JSON String from DataTable in C#. There are 1 ways to achieve this task and that are: By using JavaScriptSerializer, By using Json.Net DLL ( newtonsoft )


Transactions in .net using c#

2020-01-17 ASP.NET

What is transaction and state its need in asp net? A transaction symbolizes coding or a set of program or procedures which must be executed as a unit. All the methods must execute successfully or the complete unit fails. A transaction can be described to cover the ACID properties for mission critical applications.