473,394 Members | 1,740 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Handling Radiobuttonlist event inside Repeater Control

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.
Nov 18 '05 #1
1 3435
Make sure your controls are templated. There should only be one of each
available via item.findcontrol during the itemdatabound event.

"Ravi" <rs*****@hotmail.com> wrote in message
news:cc**************************@posting.google.c om...
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.

Nov 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: David Davis | last post by:
When I have an asp:radiobuttonlist control in a repeater and I want to dynamically preset a ListItem's selected property to true or false, I get an error message that says "BC30676: 'DataBinding'...
2
by: Jorge Ayala | last post by:
Well I'm trying to catch and act upon a button event that is placed within the item template of a repeater control. Yet the code I'm using isn't working. What I've seen out there to explain how...
1
by: wsyeager36 | last post by:
I have a datagrid inside a datalist. The datalist shows parent info and the datagrid shows the child info for that parent. There is a checkbox on each row of the child datagrid. Also inside the...
4
by: Emil | last post by:
Can somebody tell me what would be the syntax for having an if statement and setting the selected index of a radiobuttonlist? This is my first project using ASP.net and I use C#. I have a repeater...
3
by: JD | last post by:
Hello, I have a problem with checkboxlist inside Repeater (in ASP.NET page). I am able to create Checkboxlist and bind it (inside Repeater_ItemBound - including setting checked/unchecked)....
1
by: Darren | last post by:
Dear Groups, I have searched EVERYWHERE on the net and msdn for a solution to my problem and am coming up with nothing. I simply need to capture the 'selected row' and the...
3
by: Gummy | last post by:
Hello, I know I can use a Checkboxlist or a RadioButtonList to easily create a list based on the data passed to it. But using what if I wanted to use the same data and based on the data,...
0
by: djarmoluk | last post by:
I have a RadioButtonList (named rbAnswers) control within a repeater control. When binding to the repeater, I am trying to add an "OnChange" attribute to the individual list item controls (input...
3
by: Brian | last post by:
Using external XML, I'm trying to build a quiz, but I can't seem to specify the DataSource for the RadioButtonList within a Repeater ItemTemplate. I've tried a number of approaches, but I haven't...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.