469,627 Members | 936 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,627 developers. It's quick & easy.

Accessing dropdown list values inside of a repeater

After I bind the repeater control in the form_load event, it builds
multiple lines based on the number of rows in the dataset.

In the repeater control, I have a textbox and a dropdown list box. I
have tied the "SelectedIndexChanged" to it. At runtime - after I
change the dropdown box selection, I'm only able to view the values of
the controls within that one repeater instance.

After the dropdown selection is changed, I need to increment through
all of the controls within all of the repeater instances.

heres an example of what I'm using to get to the controls values:
For Each ctl In objRepeaterItem.Controls
If ctl.GetType().ToString().Equals("System.Web.UI.Web Controls.DropDownList")
And ctl.ID = "ddlScore" Then
sTemp = objDL.SelectedValue

End If
********END CODE********

Can anyone help me go through all of the instances of the repeater
item when a dropdown selection has been modified?

Thanks in advance!
Nov 18 '05 #1
0 1485

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Darren Clark | last post: by
1 post views Thread by Don Parker | last post: by
5 posts views Thread by jung_h_park | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.