Hi,
I have a Radwindow which contains a radiobuttronlist controls having 2 listitems.
I wanted that on index change of the radio buttons, a text in a label would be displayed.
However the server side code doesn't fire.
Is it because it is a Radwindow?
Below is the code that I am using.
[ASPX CODE]
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12%"> </td>
<td width="70%" class="body_header2">
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<asp:RadioButtonList ID="RadBtnConf" runat="server" AutoPostBack="true"
onselectedindexchanged="RadBtnConf_SelectedIndexChanged">
<asp:ListItem Value="0" Text="Conformance"></asp:ListItem>
<asp:ListItem Value="1" Text="Non Conformance"></asp:ListItem>
</asp:RadioButtonList>
</td>
</tr>
</table>
[C# CODE]
Please suggest.
Thanks
I have a Radwindow which contains a radiobuttronlist controls having 2 listitems.
I wanted that on index change of the radio buttons, a text in a label would be displayed.
However the server side code doesn't fire.
Is it because it is a Radwindow?
Below is the code that I am using.
[ASPX CODE]
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="12%"> </td>
<td width="70%" class="body_header2">
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
<asp:RadioButtonList ID="RadBtnConf" runat="server" AutoPostBack="true"
onselectedindexchanged="RadBtnConf_SelectedIndexChanged">
<asp:ListItem Value="0" Text="Conformance"></asp:ListItem>
<asp:ListItem Value="1" Text="Non Conformance"></asp:ListItem>
</asp:RadioButtonList>
</td>
</tr>
</table>
[C# CODE]
protected
void RadBtnConf_SelectedIndexChanged(object sender, EventArgs e)
{
Label1.Text =
"You selected " + RadBtnConf.SelectedItem.Text;
}
Please suggest.
Thanks