Hey there,
I have the following radio buttons i need to know what properties i need to add to make them so if you tic 1 the other de-tics
I did add them all to the same group "name="Group1" but that did not seem to work :)
Or do you have to add the coding to the selected index change?
Thank you for your help
<tr>
<td>
<asp:RadioButtonList ID="rbDebitOrder" name="Group1" runat="server" RepeatDirection="Horizontal"
AutoPostBack="True">
<asp:ListItem>Debit Order</asp:ListItem>
</asp:RadioButtonList>
</td>
<td>
<asp:RadioButtonList ID="rbStopOrder" name="Group1" runat="server" RepeatDirection="Horizontal"
AutoPostBack="True">
<asp:ListItem>Stop Order</asp:ListItem>
</asp:RadioButtonList>
</td>
<td>
<asp:RadioButtonList ID="rbCheque" name="Group1" runat="server" RepeatDirection="Horizontal"
AutoPostBack="True">
<asp:ListItem>Cheque</asp:ListItem>
</asp:RadioButtonList>
</td>
<td>
<asp:RadioButtonList ID="rbInternetBanking" name="Group1" runat="server" RepeatDirection="Horizontal"
AutoPostBack="True">
<asp:ListItem>Internet Banking</asp:ListItem>
</asp:RadioButtonList>
</td>
</tr>
1 reply to this topic
#1
Posted 29 August 2011 - 09:47 PM
|
|
|
#2
Posted 12 September 2011 - 04:33 AM
I had the same problem, I added Groupname to the buttons wich only were allowed to have 1 selected.
GroupName="name"
Hope it helps :).
GroupName="name"
<asp:RadioButton ID="number1" name="Group1" runat="server" GroupName="Groupname1"/> <asp:RadioButton ID="number2" name="Group2" runat="server" GroupName="Groupname1"/>
Hope it helps :).
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users


Sign In
Create Account

Back to top









