Although, there are many ways to create a DataTable object, in this article I will explain Creating a DataTable from a DataReader object. To begin with, first I will explain the DataReader object in brief. DataReader in ADO.NET Basically, a DataReader object in ADO.NET represents the connected approach of data access. A DataReader object provides read-only and forward-only …
Deleting a Record using DataGrid Control in ASP.NET
The following example shows Deleting a Record using DataGrid Control in ASP.NET. To begin with, first, understand what is a DataGrid control and how to use it in a Web Form. For this purpose, you can go through following articles to get an understanding of the DataGrid control. CRUD Operations with DataGrid in ASP.NET Creating Columns in a …
Edit a Record Using DataGrid Control in ASP.NET
The following example demonstrates how to Edit a Record Using DataGrid Control in ASP.NET. Before proceeding further, you can go through these examples on DataGrid control that I have posted earlier. CRUD Operations with DataGrid in ASP.NET Creating Columns in a DataGrid Control Insert a Record Using ItemCommand Event in DataGrid Meanwhile, we use a TemplateColumn as before …
Insert a Record Using ItemCommand Event in DataGrid
This article demonstrates how to Insert a Record Using ItemCommand Event in DataGrid. Before proceeding further, you can go through these articles for an understanding of the DataGrid control. CRUD Operations with DataGrid in ASP.NET Creating Columns in a DataGrid Control Since we are using the same database table Items in this example, there are four fields …
CRUD Operations with DataGrid in ASP.NET
To begin with, the CRUD operations stand for Create, Read, Update, and Delete. As can be seen, the CRUD operations are essential in most web applications that maintain data. Today I will explain how to perform CRUD Operations with DataGrid in ASP.NET. Basically, DataGrid is a data-bound control in ASP.NET. Therefore, it can display the data from a data …
Creating Columns in a DataGrid Control
The following example shows Creating Columns in a DataGrid Control. Before going through this example, get an overview of DataGrid control by reading this article. As I have noted earlier, our SQL Server database has a table called Items with fields – item_id, item_name, price, quantity. Therefore, we create four TemplateColumns, one for each field. In …
XML Documents and DataSet in ASP.NET
In this post on XML Documents and DataSet in ASP.NET, I will explain how to create an XML Document from a DataSet and vice versa. Also, I will explain how to display XML data in a data-bound control like GridView. An Example Demonstrating XML Documents and DataSet The following example shows how to work with XML …
Code Render Block in ASP.NET
Examples of Using Code Render Block: https://www.programmingempire.com/examples-of-using-code-render-block-in-asp-net/ This article describes Code Render Block in ASP.NET. Basically, a Code Render Block in ASP.NET refers to the inline code that we use in the ASPX page along with server-side and client-side tags. What is Code Render Block? Basically, a code render block is a block containing programming statements within a …
ASP.NET Core Features and Advantages
In this post on ASP.NET Core Features and Advantages, I will discuss the core features of ASP.NET technology that make it a choice for web developers. ASP.NET Core Basically, ASP.NET Core is another version of ASP.NET. Also, it is open-source and available on Windows, Linux, and MacOS platform. The following section describes ASP.NET Core Features and Advantages. ASP.NET Core Features Open-Source Excellent Performance Support for Containerization Several Hosting Options Dependency …
Display Images Using DataList Control
In this post on Display Images Using DataList Control, I will explain how to show images on a web page using a DataList control in ASP.NET. An Example to Display Images Using DataList Control The following example demonstrates the use of a DataList control. Basically, in this example, we use a Database table name Flowers that contains the …