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 7666375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:49:03+00:00 2026-05-31T14:49:03+00:00

I have a repeater for different updates identified by Update_ID. Each Update_ID has a

  • 0

I have a repeater for different updates identified by “Update_ID”. Each “Update_ID” has a number of images associated to it.

Therefore, I decided to nest a repeater for the images inside the repeater for updates.

The problem is that the image repeater never shows up, even if there is data to show.

Here is the code in ASP.NET:

<asp:Repeater ID="RepeaterUpdates" runat="server" onitemcommand="RepeaterUpdates_ItemCommand">
    <ItemTemplate>
        <div style="border: thin solid #808080">
            <table id="TableUpdates_Repeater" runat="server" style="width:100%; margin:auto; background-image:url(Resources/Icons/white-background.gif)">
                <tr>
                    <td style="width:25%">
                        <br />
                        <asp:Label ID="LabelUpdateID_Repeater" runat="server" Text="Update ID" Enabled="false"></asp:Label>
                        <asp:TextBox ID="TextBoxUpdateID_Repeater" runat="server" Width="50px" Text='<%# Eval("Update_ID") %>' Enabled="false"></asp:TextBox>
                    </td>
                </tr>
        </table>

        <asp:Repeater ID="RepeaterImages" runat="server">
            <ItemTemplate>
                <label>Hello</label>
                <asp:TextBox Text='<%# DataBinder.Eval(Container.DataItem,"Image_ID") %>' runat="server"></asp:TextBox>
            </ItemTemplate>
        </asp:Repeater>
        </div>
    </ItemTemplate>
</asp:Repeater>

Here is the code-behind:

protected void RepeaterUpdates_ItemCommand(object source, RepeaterCommandEventArgs e)
    {
        SqlConnection conn5 = new SqlConnection(connString);
        SqlDataReader rdr5;
        RepeaterItem item = e.Item;
        TextBox Update_ID = (TextBox)item.FindControl("TextBoxUpdateID_Repeater");

        try
        {
            conn5.Open();
            SqlCommand cmd5 = new SqlCommand("SelectImages", conn5);
            cmd5.CommandType = CommandType.StoredProcedure;
            cmd5.Parameters.Add(new SqlParameter("@update_id", Update_ID.Text));

            rdr5 = cmd5.ExecuteReader();

            if ((item.ItemType == ListItemType.Item) || (item.ItemType == ListItemType.AlternatingItem))
            {
                Repeater ImageRepeater = (Repeater)item.FindControl("RepeaterImages");
                ImageRepeater.DataSource = rdr5;
                ImageRepeater.DataBind();
            }
        }

        finally
        {
            conn5.Close();
        }
}

As previously stated, the child repeater never shows up, even if there is data to display. How can I solve this problem please? Thanks

  • 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-05-31T14:49:04+00:00Added an answer on May 31, 2026 at 2:49 pm

    Rather than onitemcommand, call OnItemDataBound

    Change RepeaterCommandEventArgs to RepeaterItemEventArgs

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a Repeater with a Button inside the ItemTemplate . I added the
Problem I have a collection of XDocument instances. Each document has a repeated element
I have a repeater that creates n-number of panels. I am trying to dynamically
I have a RadioButtonList inside a Repeater. I have AutoPostback set to true and
I have a repeater that outputs divs like the following for every item returned
I have a repeater control where in the footer I have a DropDownList. In
i have a repeater that will output a series of items: <asp:repeater ... runat=Server>
I have a repeater control on an ASP.NET 2.0 web form. As I understanding
I have a Repeater contol bound to a custom object (an EntitySpaces query) and
I have a repeater control outputting some HTML. I want a table which outputs

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.