D
David Lozzi
Howdy,
Using ASP.NET 2.0 with VB. I have a datalist that is listing out options.
Ecah option has a radio button for which the user has to select only one
option from the list. It displays properly but it appears to be not working
properly. They can select all of the radiobuttons at once. Not very good!
How do I set it up so each radiobutton is part of the group? I'm using the
GroupName option but no luck. See my HTML below.
Thanks
David
<aspataList ID="dlOptions" runat="server">
<ItemTemplate>
<td>
<asp:RadioButton ID="radOption" Text='<%#Eval("Cost") %>'
runat="server" GroupName='<%# Eval("ShipTo")%> /></td>
<td><asp:Label runat="server" ID="lblShipName"
Text='<%#Eval("Name") & "-" & Eval("Desc")%>'></asp:Label>
<asp:Label runat="server" ID="lblShipType" Text='<%#Eval("Type")
%>'></asp:Label></td>
</ItemTemplate>
<SeparatorTemplate>
<td> </td>
</SeparatorTemplate>
<FooterTemplate>
<td><img src="site_images/spacer.gif" width="80" height="1"
/></td>
<td><img src="site_images/spacer.gif" width="600" height="1"
/></td>
</FooterTemplate
Using ASP.NET 2.0 with VB. I have a datalist that is listing out options.
Ecah option has a radio button for which the user has to select only one
option from the list. It displays properly but it appears to be not working
properly. They can select all of the radiobuttons at once. Not very good!
How do I set it up so each radiobutton is part of the group? I'm using the
GroupName option but no luck. See my HTML below.
Thanks
David
<aspataList ID="dlOptions" runat="server">
<ItemTemplate>
<td>
<asp:RadioButton ID="radOption" Text='<%#Eval("Cost") %>'
runat="server" GroupName='<%# Eval("ShipTo")%> /></td>
<td><asp:Label runat="server" ID="lblShipName"
Text='<%#Eval("Name") & "-" & Eval("Desc")%>'></asp:Label>
<asp:Label runat="server" ID="lblShipType" Text='<%#Eval("Type")
%>'></asp:Label></td>
</ItemTemplate>
<SeparatorTemplate>
<td> </td>
</SeparatorTemplate>
<FooterTemplate>
<td><img src="site_images/spacer.gif" width="80" height="1"
/></td>
<td><img src="site_images/spacer.gif" width="600" height="1"
/></td>
</FooterTemplate