Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7796439
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T23:22:23+00:00 2026-06-01T23:22:23+00:00

Update: row is null if (e.Item.ItemType == ListItemType.Footer) { Label lblDateCreated = e.Item.FindControl(lblDateCreated )

  • 0

Update:

row is null

if (e.Item.ItemType == ListItemType.Footer)
{
 Label lblDateCreated = e.Item.FindControl("lblDateCreated ") as Label;
 DataRowView row = (DataRowView)e.Item.DataItem; //row is null here <<<<
 lblDateCreated .Text = row["DateChecked"].ToString();

}

END UPDATE:

how to show data in repeater footer?…

its very silly that i have spent good amount of time figuring out but if i move the same to itemtemplate then its showing but not in footer…below is my code..

<asp:Repeater ID="rpt" runat="server">
        <HeaderTemplate>
            header...
        </HeaderTemplate>
        <ItemTemplate>
            <div class="rpt">
                <div class="inner">
                    <div>
                        <div class="ert">
                            <%#DataBinder.Eval(Container.DataItem, "Comment")%>
                        </div>
                    </div>
                </div>
            </div>
            <br />
        </ItemTemplate>
        <FooterTemplate>
            footer.....
            <div id="datetime">
            <asp:Label ID="lblDateTime" runat="server" Text='<%#DataBinder.Eval(Container.DataItem, "DateChecked")%>'></asp:Label>
            </div>
            <div id="save">
            <p>
                <asp:HyperLink ID="Hyperlink2" runat="server" NavigateUrl="~/link.aspx"
                    Text="More"></asp:HyperLink></p>
            </div>
         </FooterTemplate>
    </asp:Repeater>

code-behind:

rpt.DataSource = mydatasource;
rpt.DataBind();
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T23:22:24+00:00Added an answer on June 1, 2026 at 11:22 pm

    FooterTemplate is not rendered with each row , thus you cannot bind Comment of a DateItem to footer like this.

    It seems that there would be only one Date Checked that you want to show in the footer.

    You are looking DateChecked in DataItem that could be different for each row.

    If all rows contain same DateChecked you can create a server side property to store it , you can use any rows Datechecked if all are same if not , you can store whichever date you want to show in footer (it should be any one date)
    Use following block in footer to show the DateChecked
    <% = PropertyName %>
    OR
    As you already placed Label in footer, you can directly bind lblDateTime from server side using this property.

    rpt.DataSource = mydatasource;
    rpt.DataBind();
    
    var lblDateTime = rpt.FindControl("lblDateTime") as Label;
    if (lblDateTime != null)
    {
       lblDateTime.Text = mydatasource.First().DateChecked;
    }
    

    To Bind Repeater in Footer Control

     void R1_ItemDataBound(Object Sender, RepeaterItemEventArgs e) {
    
      // This event is raised for the header, the footer, separators, and items.
    
      // Execute the following logic for Footer only.
      if (e.Item.ItemType == ListItemType.Footer) {
    
            footerRepeater.DataSource = mydatasource;
            footerRepeater.DataBind();
      }
     } 
    

    ASPX

    <asp:Repeater ID="rpt" runat="server">
        <HeaderTemplate>
            header...
        </HeaderTemplate>
        <ItemTemplate>
            <div class="rpt">
                <div class="inner">
                    <div>
                        <div class="ert">
                            <%#DataBinder.Eval(Container.DataItem, "Comment")%>
                        </div>
                    </div>
                </div>
            </div>
            <br />
        </ItemTemplate>
        <FooterTemplate>
            footer.....
           <asp:Repeater ID="rpt" runat="server">
             <ItemTemplate>
               <div>
                  <asp:Label ID="lblDateTime" runat="server" DataBinder.Eval(Container.DataItem, "DateChecked")%>'></asp:Label>
              </div>
            </ItemTemplate>
           </asp:Repeater>
         </FooterTemplate>
     </asp:Repeater>
    

    CS

    To Bind Repeater in Footer Control

     void R1_ItemDataBound(Object Sender, RepeaterItemEventArgs e) {
    
      // This event is raised for the header, the footer, separators, and items.
    
      // Execute the following logic for Footer only.
      if (e.Item.ItemType == ListItemType.Footer) {
    
            footerRepeater.DataSource = mydatasource;
            footerRepeater.DataBind();
      }
    } 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to update row in a table using values from a different row
I want to always update the value of an update row in the database.
I'm trying to update a row in my database but it's not running. Below
Is it possible to update first row and with WHERE clause. I Tried: UPDATE
I've been asked to implement some code that will update a row in a
I was wondering what the syntax was in PHP to update a row in
Is it a good practice to have timestamps for the last row update in
I've been trying to update a specific row for a while now, and it
I'm trying to do a single row insert/update on a table but all the
CREATE TRIGGER google_inventory BEFORE UPDATE ON `cataloginventory_stock_item` FOR EACH ROW BEGIN update `catalog_product_entity_int` set

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.