| Author: Rabiya 04 Nov 2009 | Member Level: Gold | Rating:  Points: 2 |
You mean to add radio buttons dynamically after fetching the names from DB?
~Rabiya~
|
| Author: vipul 04 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
Hi, you want add only "Radiobutton" string after each name or you want control after each name? if you want to control then you can used radiobutton list control
<asp:RadioButtonList ID="test" runat="server"> <asp:ListItem Text="1" Value="1"></asp:ListItem> <asp:ListItem Text="2" Value="1"></asp:ListItem> <asp:ListItem Text="3" Value="1"></asp:ListItem> <asp:ListItem Text="4" Value="1"></asp:ListItem> </asp:RadioButtonList>
and if you want to in your way than you can used repeater control this way and bind you datasource to repeater control
<asp:Repeater ID="TEST" runat="server"> <ItemTemplate> <%# Eval("Name") %><asp:RadioButton ID="rdb1" runat="server" /> </ItemTemplate> </asp:Repeater>
Please Rate This Answer If They Helpful
Thanks & Regards Patel Vipul
|
| Author: Naresh 04 Nov 2009 | Member Level: Silver | Rating:  Points: 2 |
Ya i have to add radiobuttons dynamically in c# windows
|
| Author: SuganyaCMR 04 Nov 2009 | Member Level: Gold | Rating:  Points: 2 |
Hi Patel Vipul,
There is no radio button list in windows application. your coding is wrong
Regards, Suganya
In order to succeed, you must first be willing to fail! Rate my post!.If u found useful
|
| Author: Deepika Haridas 09 Nov 2009 | Member Level: Diamond | Rating:  Points: 2 |
Yes as per Suganya said there's no Radio button list in Windows application. You need to use Radio button and group it.
Thanks & Regards, Deepika Editor
If U want to shine like a SUN..First U have to burn like the SUN!! Need a Guide? Join my mentor program..
|