473,396 Members | 2,087 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,396 software developers and data experts.

Using RadioButtonList Class object.

When we can use this control? I am not understanding its importance. Any
suggestions.
Vin
Nov 18 '05 #1
2 1305
You can use the RadioButtonList anywhere you would use more than one radiobutton, which will be the case almost all the time. It's benefit is that you are able to reference the selected button by refering to it by the selectedValue, selectedItem, or selectedIndex property, similar to the listbox or the dropdownlist controls.
You can also add items to it programmatically on the server-side , by creating ListItem objects, or you can add them through the properties window if you are using Visual Studio.NET.
Another great feature of this control is that you are able to bind the items directly from a datatable or dataset, which is great if you have a variable number of ListItems depending on some condition.

hope this helps,
John
"Vinayaka" wrote:
When we can use this control? I am not understanding its importance. Any
suggestions.
Vin

Nov 18 '05 #2
What I understood is "It avoids writing extra code"
Thanks for the info.
Vin

"John Sivilla" <Jo*********@discussions.microsoft.com> wrote in message
news:6A**********************************@microsof t.com...
You can use the RadioButtonList anywhere you would use more than one radiobutton, which will be the case almost all the time. It's benefit is
that you are able to reference the selected button by refering to it by the
selectedValue, selectedItem, or selectedIndex property, similar to the
listbox or the dropdownlist controls. You can also add items to it programmatically on the server-side , by creating ListItem objects, or you can add them through the properties window
if you are using Visual Studio.NET. Another great feature of this control is that you are able to bind the items directly from a datatable or dataset, which is great if you have a
variable number of ListItems depending on some condition.
hope this helps,
John
"Vinayaka" wrote:
When we can use this control? I am not understanding its importance. Any
suggestions.
Vin

Nov 18 '05 #3

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

Similar topics

0
by: Michelle Keys | last post by:
I am trying to call a print function to print a string from a database using javascript. Which is RC_DATA of Varchar2(2500). This is a javascript is not being used. I have a thing that needs to...
2
by: sramruttun | last post by:
hi I have a checkbox and a radiobuttonlist (the radiobuttonlist contains 2 items) in my form. The radiobuttonlist has its visible property set to false at design time. At run time, when the...
6
by: DotNetGruven | last post by:
I have a webform that has a DataGrid on it with a RadioButtonList in each row. It is a simple On & Off. When the User Clicks on either of the RadioButtons, I need to postback to the server and...
1
by: Empire City | last post by:
I have an ASP.NET form with a DataGrid and Button. I want to put a RadioButtonList in a DataGrid cell. I bind it to an ArrayList which has a ListItem in the cell. The display part works fine. I...
1
by: Shamin | last post by:
Hi All, I'm refering to the code in this article. http://www.dnzone.com/ShowDetail.asp?NewsId=151 I'm trying to do the same in VB.NET and I'm having problems with procedure...
4
by: juststarter | last post by:
Hello, I have an aspx file where i've put a placeholder element. On load (page_load) i create dynamically an html table which contains a checkbox and a radiobuttonlist in each tablerow . The...
5
by: Mukesh | last post by:
Hi i want to use AJAX.net in my Existing Application I have already installed the ajax .net ..net 3.0 and using VS 2005 in the old application i have added a new web form then script manager...
4
by: sck10 | last post by:
Hello, I am converting some code from VB to C# and ran into a conversion error: Cannot implicitly convert type 'object' to 'System.Web.UI.WebControls.RadioButtonList'. An explicit conversion...
5
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hallo, I have a radiobuttonlist control that is added on a custom Web User Control. This control has a property that exposes the SelectedIndex property of the embedded radiobuttonlist. When...
8
by: =?Utf-8?B?Q2hyaXMgSGFsY3Jvdw==?= | last post by:
Hi there I've successfully added some .NET validation controls to a page (using <asp:RequiredFieldValidator ...), however when I try to set the 'display' property to 'dynamic', my page then...
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
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.