Add ListItem to RadioButtonList : Radio Button List « Asp Control « ASP.Net

Add ListItem to RadioButtonList

<script language="C#" runat="server">
protected void Page_Load(object o, EventArgs e) {
    if(!IsPostBack) {
        ListItem item;
        item = new ListItem("A", "1");
        item = new ListItem("B", "2");
        item = new ListItem("C", "3");

protected void DropDownListSelectionChanged(object o, EventArgs e) {
    favoriteLanguage.Text = languageRadioButtonList.SelectedItem.Value;
<form runat="server">
    OnSelectedIndexChanged="DropDownListSelectionChanged" >
Favorite Language: <b><asp:label runat="server" id="favoriteLanguage" style="color:blue" /></b><br />
<asp:button runat="server" Text="Submit"/>


Related examples in the same category

1.Get selected item, value and text from asp:RadioButtonList (
2.On radiobutton list changed (
3.Setting and Retrieving the Selected Item in a RadioButton Control Group (
4.Set asp:RadioButtonList Repeat Layout (
5.Select case for asp:radiobuttonlist (
6.Get selected item value from asp:radiobuttonlist (
7.Get selected radio button from radio button list (C#) case statement for asp:radiobuttonlist (C#)
9.Get selected value from asp:radiobuttonlist (C#)
10.RadioButtonList Control