This example demonstrates how to use IList Generic Interface to store data. This example demonstrates how to use IList Generic Interface to store data.
IList Generic Interface represents a collection of objects that can be individually accessed by index.
First, you will need to import the System.Collections.Generic namespace.

The System.Collections.Generic namespace contains interfaces and classes that define generic collections, which allow users to create strongly typed collections that provide better type safety and performance than non-generic strongly typed collections.

We use the BindData function to do the work.
We use GridView control to display data. The code as follow:

I add one userinfo custom class which is used to store data.The code as follow:

The front end TemplateVB.aspx page looks something like this:

The flow for the code behind page is as follows.

Download Source Files