Name Age XYZ 30 XY1 31 XY2 32 XY3 33
name age name age XYZ 30 XY1 31 name age name age XY2 32 XY3 33
<asp:Repeater ID="RptNCode" runat="server" OnItemCommand="RptNcode_ItemCommand" OnItemDataBound="RptNCode_ItemDataBound"> <HeaderTemplate> <tr style="background-color: #507CD1; color: White; font-weight: bold; text-align: center; height: 20px"> <td style="color: White;"> Sr.No </td> <td style="color: White; text-align: left"> Name </td> <td style="color: White; text-align: right"> Age </td> </tr> </HeaderTemplate> <ItemTemplate> <tr style="background-color: #ffffff; height: 20px; font-family: Arial"> <td align="left" style="font-size: 15;"> <asp:LinkButton ID="lnkNCode" ForeColor="#336699" runat="server" Text='<%# Eval("Name") %>' CommandArgument='<%# Eval("Name") %>' CommandName="NCode"></asp:LinkButton> </td> <td align="center" style="font-size: 15; text-align: right;"> <%# Eval("Age")%> </td> </tr> </ItemTemplate> <AlternatingItemTemplate> <tr style="background-color: #ffffff; height: 20px; font-family: Arial"> <td align="left" style="font-size: 15;"> <asp:LinkButton ID="lnkNCode" ForeColor="#336699" runat="server" Text='<%# Eval("Name") %>' CommandArgument='<%# Eval("Name") %>' CommandName="NCode"></asp:LinkButton> </td> <td align="center" style="font-size: 15; text-align: right;"> <%# Eval("Age")%> </td> </tr> </AlternatingItemTemplate> <FooterTemplate> <tr> <td align="right" height="40px"> <asp:Label ID="lblTotal" runat="server" Font-Bold="true" ForeColor="#336699"></asp:Label> </td> </tr> </FooterTemplate> </asp:Repeater>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)