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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:49:00+00:00 2026-06-13T06:49:00+00:00

I constructed a Repeater for my XML file roughly like so: <asp:XmlDataSource ID=XmlDataSource1 runat=server

  • 0

I constructed a Repeater for my XML file roughly like so:

<asp:XmlDataSource ID="XmlDataSource1" runat="server" DataFile="samplexml.xml" XPath="level1/level2" />
<asp:Repeater id="category" runat="server" DataSourceID="XmlDataSource1">

<ItemTemplate>
    <div class="category">
    <h2><%#XPath("@name") %></h2>

    <asp:Repeater id="group" runat="server" DataSource='<%# XPathSelect("group") %>'>
        <ItemTemplate>
        ...
        </ItemTemplate>
    </asp:Repeater>

    </div>
</ItemTemplate>

</asp:Repeater>

And now I’m working on how to get the data inside of each on postback. I learned roughly how to get into a RepeaterItem:

foreach (RepeaterItem items in category.Items)
{   
    Output.Text += items.UniqueID + "<br />";
}

But after a lot of searching MSDN, this site, and others, I haven’t been able to figure out how to get into the group repeater.

Am I missing something obvious here? I’m in .NET 2.0.

  • 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-13T06:49:01+00:00Added an answer on June 13, 2026 at 6:49 am

    You aren’t missing anything obvious. In my experience working with nested Repeaters/ListViews/Etc is a nightmare.

    If you have the option to do this using MVC I would recommend that. If not…. Your best bet is probably to get familiar with FindControl. Typically your code will look something like this:

    protected void category_ItemDataBound(object sender, RepeaterItemEventArgs e)
    {
        Repeater level2 = e.Item.FindControl("group") as Repeater;
        //you are now working with the nested repeater in a single row...  Do what you will!
    }
    

    So when a row in the parent repeater binds, you will have to use FindControl to find it’s nested repeater. Good luck!

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

Sidebar

Related Questions

I have constructed an XML tree structure of an XML file. I am able
I'm using python, and I have a list of sets, constructed like this: list
I have constructed an ASP.NET user control Box.ascx wtih the following code. <div id=divContent
I have constructed a class to mimic a C# struct: public class Favourite {
I have constructed a suffix trie, a tree containing all the suffixes of a
I have constructed a collection of data series items. Each data series has multiple
Javascript has a poorly constructed but convenient arguments variable inside every function, such that
The TimeSpan class can be constructed with days, hours, minutes, seconds and milliseconds: public
I had some code that constructed an object: function gridObjConst(id, itemName, itemPrice, itemListPrice, width,
My issue is I believe I've constructed the request correctly, but I am getting

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.