ASP.NET: Delete multiple rows in a GridView using C#

This article will elaborate on the method to delete multiple rows in the ASP.NET GridView control. Delete multiple rows in an ASP.NET grid using C# Let get started by adding an Employees Table to the Database The SQL Server database: Let’s assume you have a database where records of all the employees are stored. For... » read more

Fetch and display RSS feed using ASP.NET

ASP.NET and RSS feed After you have launched Visual Studio, click on File at the top left corner. Select New > Project. In the New Project window, select Web from the options on the left. Select ASP.NET Web Forms Application. Set the location from the options at the bottom where you’d like to store the... » read more

Save Data from GridView to DataTable using C#

In this article, we will learn how to loop through the rows of GridView using For Each loop while inserting new rows to DataTable using C#. Insert Data from GridView to DataTable in C# First, add a GridView and a button to your web page: <div> <asp:GridView ID="gv" runat="server" AutoGenerateColumns="false"> <Columns> <asp:BoundField DataField="CustomerId" HeaderText="Customer Id"... » read more

Asp.Net: Bind GridView using ViewState and Datatable

In this article, we will learn how to save a DataTable in ViewState and bind it to a GridView. In case, a new record is being added, the DataTable is fetched from the ViewState, updated, and used again to bind the GridView. Bind GridView using Datatable and ViewState using ASP.NET DataTable represents a single in-memory... » read more

Introduction to Inheritance in PHP

Inheritance is one of the basic concepts of object-oriented programing methodology. It allows a class to “inherit” the properties and methods of an existing class by extending it. Unless the child class “overrides” the methods of the existing class, they will maintain their original functionality. The relationship between these classes is called a parent-child relationship.... » 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