my asps file Customer.aspx
- <asp:UpdatePanel runat="server" ID="updpnl">
- <ContentTemplate>
- <asp:Panel runat="server" ID="Panelmapdetail" Height="280px" ScrollBars="Auto">
- <table class="table table-hover table-nomargin table-colored-header">
- <thead>
- <tr>
- <th>UniqID</th>
- <th>Customer Name</th>
- <th>Product1</th>
- <th>Product2</th>
- <th>Product3</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <asp:Repeater runat="server" ID="rptrStudMarksDetails">
- <ItemTemplate>
- <tr>
- <td style="display:none"><asp:Label ID="lbCustomerProduct" runat="server" Text='<%#Eval("CustomerProduct") %>'></asp:Label></td>
- <td><%#Eval("UniqID") %></td>
- <td><%#Eval("Customer Name") %></td>
- <td><%#Eval("Product1") %></td>
- <td><%#Eval("Product2") %></td>
- <td><%#Eval("Product2") %></td>
- </tr>
- </ItemTemplate>
- </asp:Repeater>
- </tbody>
- </table>
- </asp:Panel>
- </ContentTemplate>
- </asp:UpdatePanel>
- <asp:LinkButton runat="server" ID="lbnExport" OnClick="lbnExport_Click">Export to Excel</asp:LinkButton>
my aspx.cs file customer.aspx.cs
my output
