Click here to Skip to main content
15,905,232 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to create and use session inside repeater control my code bellow.

XML
<asp:Repeater ID="rptreport" runat="server">
           <ItemTemplate>
               <tr>
                   <td><%# Eval("DATE") %></td>
                   <td><%# Eval("OBAL") %></td>
                   <td><%# Eval("PBO") %></td>
                   <td><%# Eval("OI") %></td>
                   <% int count = int.Parse(Session["count"].ToString()); for (int g = 0; g < count; g++){
                          Session["g"] ="DC"+g.ToString();       %>

                         <td><%#Eval(Session["g"].ToString()) %></td>

                    <% } %>
                   <td><%# Eval("CBAL") %></td>
               </tr>
           </ItemTemplate>
           <FooterTemplate>
               </table>
           </FooterTemplate>
       </asp:Repeater>
Posted

1 solution

use gridview for that. So solve self
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900