Handling Radiobuttonlist event inside Repeater Control

R

Ravi

Hi,

I have a radio button list and a dropdownlist inside a repeater
control.

Want to hide or display the dropdownlist based on selection in
radiobuttonlist.

I can add the selectedindexchanged eventhandler for radiobuttonlist in
itemdatabound,but cannot figure out which items dropdownlist in
repeater control I should hide, when i hit the selectedindexchanged
event handler.

That is if i have 4 records bound to repeater control, i cannot figure
out which records dropdownlist i should hide?.

Can somebody help me on this?. or is there any work around for the
problem, like using java script?

Ravi.
 
R

Rick Spiewak

Make sure your controls are templated. There should only be one of each
available via item.findcontrol during the itemdatabound event.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top