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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:03:44+00:00 2026-05-12T05:03:44+00:00

I have a list of Accommodation objects bound to a Repeater, and then a

  • 0

I have a list of Accommodation objects bound to a Repeater, and then a nested Repeater which has the various attendee groups listed [e.g. Default, Seniors, Juniors]. This is all output fine, with the values displayed as LinkButtons, which when clicked gets sent to a code-behind event handler.

Here is an example of the output to give you a picture [with some er… interesting attendee group names]:
The output from the nested Repeaters http://abunchofletters.co.uk/images/report-accommodation-section.png

In the event handler, I test the object parameter to see which Repeater has been sent, as the outer repeater’s links can also be clicked [so the Accommodation would be set, but no Attendee Group].

Is there a way to get a HiddenField from the outer RepeaterItem that contains the currently clicked inner repeater’s LinkButton? E.g. From the image, I click the Attending link in the Women section. So the EventArgs via FindControl can get me the hidden field which contains the Attendee Group’s ID, which is good, but I also need the Accommodation ID [to know whether it was either Wimbledon Hotel Inn or New Acc]

  • 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-12T05:03:45+00:00Added an answer on May 12, 2026 at 5:03 am

    Turns out that all you need to do is access the grand-parent. I tried the parent already, but then realised that would only take you as far as the inner Repeater.

    All that was needed was:

    repeaterArgs.Item.Parent.Parent.FindControl( "hdnAccommodationID" ) as HiddenField;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have List objects which are shown like this: www.mysite.com/lists/123 Where 123 is the
I have list of some data items. Each has a method GetStyle which returns
I have list of objects type Node ( items ). And Node class has
I have list of objects that contain information about which classes static EventHandler should
I have list of categories , some have sub-category and some have sub-sub-category which
I have List I want to sort Desc by Priority, which is int and
I have list of files which contain particular patterns, but those files have been
This is probably something really stupidly simple.. I have a drop down list bound
I have list of li which have some hidden li also. I am applying
I have list of transaction objects and want to order them by certain condition

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.