It may be very easy to do, but so far it has been taking me all day for something to work.
I have a repeater populated with a table. Each line in the repeater has a set of controls. The most important of these is a drop-down list with AutoPostback = true.
This ddl should postback when the user changes the selected index so that I can hide / show the controls in ddl.
The problem is that when the user changes the selected index in ddl and the server-side postback, I cannot get the index of the row containing the ddl that made the postback.
Hope this is clear enough and that someone can help me here.
Thanks!
EDIT:
Maybe this is something that was not clear enough: when I put the control with ID = "ddlSomething" inside the ItemTemplate in the repeater and I have 5 lines in the data source, I will have 5 lines in the repeater with 5 ddl with the same identifier (on the server side, on the client side there will be something like "ctl01 $ ddlSomething", "ctl02 $ ddlSomething". My problem is that when returning ddl I do not know which of these 5 (for example) ddl is the one that postback did, because just looking at the Request.Form variables, I see that the ddlSomething control is it.
source
share