Hello friends, how to display large amount of data in data-list in asp.net using C# ?? please advise us... Thanks Adelicia
Hi, Datalist is a databound control in which data is stored in multiple colums and in different formats. Thanks..
we have to add a few tags on the .aspx design page to place where we want the DataList control to display its bound data without any issue of amount of data you have to show. Inside of the main DataList tag, we use the <HeaderTemplate> tag to specify the column titles for our repeated data and the <ItemTemplate> tag to specify what HTML tags can go around that repeated data (in this case, <td> tags surround each item). So, the front end .aspx page looks something like this: <td align="center" bgcolor="#FFFFFF"> <aspataList ID="dlExample" runat="server" CssClass="basix" GridLines="Both"> <HeaderTemplate> <td>First Name</td> <td>Last Name</td> <td>Hire Date</td> </HeaderTemplate> <ItemTemplate> <td><%# DataBinder.Eval(Container.DataItem,"firstname") %></td> <td><%# DataBinder.Eval(Container.DataItem,"lastname") %></td> <td><%# DataBinder.Eval(Container.DataItem,"hiredate") %></td> </ItemTemplate> </aspataList> <asp:label ID="lblStatus" runat="server"></asp:label></td>