Your Source of Programming Tutorials

##### Linear Search in PHP

The following function searches for an element \$x from an array called \$arr by going through each element of the array, one by one. If the element is found in the array, the function returns the index of the element, otherwise, it returns -1. Linear Search function using PHP <?php function search(\$arr, \$x) { for(\$i... » read more

##### Implement Bubble Sort using C++

How to implement Buble Sort method using C++ For example, to sort an array of elements 3,1,2 in ascending order, bubble sort will compare the first pair of adjacent numbers 3 and 1. As 3 is greater than 1, these values will be swapped. The array will be 1,3,2. In the next iteration, 3 and... » read more

##### Implement Bucket Sort using C++

Implement a Bucket Sort method using C++ You can use bucket sort if the input values are distributed uniformly over a given range. Mostly, the bucket sort is used to sort floating-point numbers in the range [0,1] Needless to say, the recursive implementation of the bucket sorting algorithm uses the bucket sorting to sort the... » read more

##### How to find Factorial of a large number using C++

Factorial of a non-negative number n is expressed as n!. Mathematically, Factorial is defined as: By default, the factorial of zero is defined to be 1. For example, if you have to find the factorial of 5, multiple all positive integers less than or equal to 5. There are a few ways to write the... » read more

##### ASP.NET MVC Core 3.0: CRUD Operations using SQL Server and Dapper

This article is going to be all about CRUD operations in ASP.NET 3.0 and Dapper. We will start from the basics and walk you through the various intricacies of CRUD operations, and hopefully, you develop a clear understanding of it all at the end. Also, it’s Visual Studio 2019 that we will be using to... » read more

##### Understanding Garbage Collection in .NET

Garbage Collection in .NET has been hailed as a smart new feature introduced to the .Net platform that is designed to relieve the programmer from having to perform explicit memory management roles. That way, it works as a sort of an automatic memory manager of sorts. And an efficient one at that too, performing in... » read more

##### How to create an ASP.Net Core Custom Middleware

Middleware in ASP.Net Core refers to a piece of software code that is assembled in an app pipeline to process requests and responses. In other words, middleware determines how the application is going to react in response to HTTP requests. Create a Custom Middleware in ASP.Net Core Each of the components essentially performs two tasks,... » read more

##### An introduction to Data Annotations in ASP.NET Core

Data Annotations in ASP.NET Core For instance, if it is a name field, you can specify it to accept only characters and the maximum number of characters that it can accept. Similarly, if there is an age field, you will be able to set the minimum and maximum age that the user can input for... » read more

##### ASP.NET GridView: Sort data using column headers

How to sort data in ASP.NET GridView using column headers GridView is a powerful data grid control which allows us to display the values of a data source in a table format where each column represents a field and each row represents a record. The GridView control lets you select, sort, or edit these data... » read more

##### Disable a DropDownList item in Asp.Net using C#

In this article, we will learn how to disable an item (option) using C#. After disabling it, the user will not be able to select the DropDownList. How to Disable a DropDownList first item in Asp.Net using C# Let’s create a simple table ‘customers’ as shown below: CustomerId (INT), CustomerName (NVARCHAR 50) CustomerEmail (NVARCHAR 50)... » read more

##### ASP.Net DropDownList Filter and Search items using JavaScript

In this article, we will learn how to create, search, and filter a DropDownList control in Asp.Net as using JavaScript. Filter and Search ASP.Net DropDownList items using JavaScript Fist, let start by creating a WebForm, then add controlse to it as shown below: <div> <asp:TextBox ID="txtFilter" runat="server" onkeyup="FilterDDL(this.value)"></asp:TextBox><br /> <asp:DropDownList ID="ddlColors" runat="server"> <asp:ListItem Text="Black" Value="1"></asp:ListItem> <asp:ListItem... » read more

##### A simple ASP.NET login system using C#

In this article, we will learn how to create a simple user authentication system in Asp.Net using C#. The user’s credentials will be saved in the database and will be retrieved to verify the login information. Create a login module using ASP.NET In this tutorial, The login system consists of two pages. Login Page: Login.aspx... » read more

##### ASP.NET GridView RowUpdating event using C#

In this article, we will learn how to use the RowUpdating event of GridView in Asp.Net using C# with an example. This example takes advantage of GridView control and perform edit and update operations on data and save the changed data in the database. RowUpdating event in the GridView in Asp.Net using C# Let’s get... » read more

##### Asp.Net GridView: Insert, Update, and Delete data using C#

Overview of CRUD operations using ASP.NET GridView Crud operation ( create, read, update, and delete) is another term of the Select, Insert, Update, and Delete actions. In this example, we will use a simple database table to perform these operations from an ASP.NET GridView. Let’s get started by creating the database and the table. The Database... » read more

##### ASP.NET Search GridView on TextChanged Event Using C#

In this article, we will learn how to search and filter the GridView by using a TextBox. The OnTextChanged event handler will fire when TextBox gets changed. To use the Text changed event you need to add the related event handler in your code and set the AutoPostBack to true through HTML. How to Search... » read more