I have a repeater that has multiple dropdown lists and multiple buttons.
Each button is tied to the dropdown list in the repeater row. Is there a way to alert the dropdownlists value on a button click. I want the button click to alert the value of the ddl in the same repeater row.
Is this possible?
There must be something that relates the button to the corresponding dropdown list. You mentioned something about a row. But in an ASP.NET repeater there’s nothing that forces you to separate rows.
But let’s suppose that you have separated your rows with a
<div>:Now you could subscribe to the
clickevent of the button and find the corresponding dropdown: