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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T13:17:09+00:00 2026-06-14T13:17:09+00:00

How can I populate a drop down list within a repeater for the iEnumerable

  • 0

How can I populate a drop down list within a repeater for the iEnumerable participants?

    Dim ac = pl.pages _
        .Where(Function(p) p.urlName = "2012Basketball" And p.organization.urlName = "CopleyHS") _
        .SelectMany(Function(p) p.actions) _
        .GroupBy(Function(s) s.eventId) _
        .[Select](Function(g) New With { _
          Key .EventId = g.Key, _
          Key .EventName = g.FirstOrDefault().event.name, _
          Key .Actions = g.[Select](Function(s) New With { _
            Key .ActionId = s.id, _
            Key .ActionName = s.name, _
            Key .Participants = s.event.participants.[Select](Function(k) New With { _
                Key .ParticipantName = k.name, _
                Key .ParticipantId = k.id _
            }) _
          }) _
       })

    rep_Events.DataSource = ac
    rep_Events.DataBind()

.aspx:

<asp:Repeater ID="rep_Events" runat="server">
    <ItemTemplate>
        <b><%#Eval("EventName")%></b>
        <asp:Repeater ID="rep_Actions" runat="server" Datasource='<%#Eval("Actions") %>'>
            <ItemTemplate>
                <blockquote>
                    <%#Eval("ActionName")%> <br />
                    <asp:DropDownList ID="dd_participants" runat="server" DataSource='<%# Eval("Participants") %>' DataTextField='<%# Eval("ParticipantName") %>' DataValueField='<%#Eval("ParticipantId")%>'>
                    </asp:DropDownList>
                </blockquote>
            </ItemTemplate>
         </asp:Repeater>
    </ItemTemplate>
</asp:Repeater>

The error occurs at asp:DrowDownList, stating that VB$AnonymousType_1 does not contain a property with the name ParticipantName.

DataBinding: 'VB$AnonymousType_1`3[[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral,  PublicKeyToken=b77a5c561934e089],[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Collections.Generic.IEnumerable`1[[VB$AnonymousType_2`2[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089],[System.Int32, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]], App_Web_2earclkn, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null]], mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]' does not contain a property with the name 'ParticipantName'.

I have attempted to convert the participants with .ToList, and .AsEnumerable, but still getting errors with that.

Any help would be appreciated.

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-06-14T13:17:10+00:00Added an answer on June 14, 2026 at 1:17 pm

    Of course this falls as the second list, Actions doesn’t have ParticipantName property. The property is within items of the third list. So you could change the code as follows:

     <asp:DropDownList ID="dd_participants" runat="server" DataSource='<%# Eval("Participants") %>' DataTextField="ParticipantName" DataValueField="ParticipantId">
                    </asp:DropDownList>
    

    Hope that helps.

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

Sidebar

Related Questions

How can I populate a telerik drop-down list at page load? I get the
I have this to populate a drop down list in an ASP.NET MVC view.
I am trying to populate a drop down list when a specific list item
I have a drop-down list which causes a text-area to populate with different text
I have a web-part which populates a drop-down full of possible pages located within
I am trying to populate a drop down list of SQLServers on a network
Hi I am trying to populate an entire Drop down list with MySQL but
How can I get the variable My.Application.Info.Version.ToString to populate in the comments section? Dim
I have this project for school where i have to populate a drop down
using a drop-down list that's populated from database fields, i need to select an

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.