R
rn5a
A ASPX page has a RadioButtonList with 2 ListItems - 'Yes' & 'No'
<form runat="server">
<asp:RadioButtonList ID="rdlAdd" OnSelectedIndexChanged="ShowHide"
AutoPostBack="true" runat="server">
<asp:ListItem Value="yes">Yes</asp:ListItem>
<asp:ListItem Value="no">No</asp:ListItem>
</asp:RadioButtonList>
</form>
When the page loads for the first time, neither of the 2 RadioButtons
are checked by default.
What I want is when a user checks the 'Yes' RadioButton, a Label should
get displayed IN BETWEEN the 2 RadioButtons. In other words, the Label
should be displayed immediately after the 'Yes' RadioButton. If the
'No' RadioButton is checked, then the already rendered Label in between
the 2 RadioButtons should become invisible & another Label should be
displayed after the 'No' RadioButton.
The problem is how do I display a Label control IN BETWEEN the 'Yes' &
'No' RadioButtons when the 'Yes' RadioButton is checked?
<form runat="server">
<asp:RadioButtonList ID="rdlAdd" OnSelectedIndexChanged="ShowHide"
AutoPostBack="true" runat="server">
<asp:ListItem Value="yes">Yes</asp:ListItem>
<asp:ListItem Value="no">No</asp:ListItem>
</asp:RadioButtonList>
</form>
When the page loads for the first time, neither of the 2 RadioButtons
are checked by default.
What I want is when a user checks the 'Yes' RadioButton, a Label should
get displayed IN BETWEEN the 2 RadioButtons. In other words, the Label
should be displayed immediately after the 'Yes' RadioButton. If the
'No' RadioButton is checked, then the already rendered Label in between
the 2 RadioButtons should become invisible & another Label should be
displayed after the 'No' RadioButton.
The problem is how do I display a Label control IN BETWEEN the 'Yes' &
'No' RadioButtons when the 'Yes' RadioButton is checked?