Populating DropDownlist in repeater based on value of other DropDownList in a repeater
Posted on 2013-06-18
I have a reserved seating app that needs to allow the user to define section, row, seat based on a database that contains a list of available seats. The repeater looks like this...
Ticket 1 [ddlSection] [ddlRow] [ddlSeat]
Ticket 2 [ddlSection] [ddlRow] [ddlSeat]
Ticket 3 [ddlSection] [ddlRow] [ddlSeat]
If the user selects section from Ticket1.ddlSection, the Ticket1.ddlRow should update based on available rows in the section. How do I handle this? Do I use the ItemCommand of the repeater? How do I get the "onselectedindexchanged" to fire within the repeater? Any help would be appreciated. Please include a little example code.