Click here to Skip to main content
15,898,371 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
XML
how we can strore multiple value of radiobuttonlist?

here is my rdiobuttonlist

<td class="h1_font" valign="top">
Mother Tounge</td>
<td>
<asp:ListBox ID="lstPartnerMotherTounge1" runat="server"
SelectionMode="Multiple">
<asp:ListItem>Arunachali</asp:ListItem>
<asp:ListItem>Assamese</asp:ListItem>
<asp:ListItem>Awadhi</asp:ListItem>
<asp:ListItem>Arunachali</asp:ListItem>
<asp:ListItem>Bengali</asp:ListItem>
<asp:ListItem>Bhojpuri</asp:ListItem>
<asp:ListItem>Brij</asp:ListItem>
<asp:ListItem>Bihari</asp:ListItem>
<asp:ListItem>Badaga</asp:ListItem>
<asp:ListItem>Chatisgarhi</asp:ListItem>
<asp:ListItem>Dogri</asp:ListItem>
<asp:ListItem>English</asp:ListItem>
<asp:ListItem>French</asp:ListItem>
<asp:ListItem>Garthwali</asp:ListItem>
<asp:ListItem>Garo</asp:ListItem>
<asp:ListItem>Gujarati</asp:ListItem>
<asp:ListItem>Arunachali</asp:ListItem>
</asp:ListBox>
<asp:Button ID="btnMotherToungeLeft" runat="server"
OnClick="btnMotherToungeLeft_Click" Text="Add" />
<asp:Button ID="btnMotherToungeRight" runat="server"
OnClick="btnMotherToungeRight_Click" Text="Remove" />
<asp:ListBox ID="lstPartnerMotherTounge2" runat="server"
SelectionMode="Multiple"></asp:ListBox>
</td>

i want to store multiple mothertounge in one column how can i do that?
Posted
Comments
[no name] 10-Jul-12 8:33am    
why you are not use Checkbox for the multiple selection ?
Kaushik Saha from Kolkata,India 10-Jul-12 8:46am    
Do u want to create a string of selected mother language

1 solution

You can use an enumeration to represent all the values of the checkbox.
The simply store the appropriate value.

RadioPanel: Binding RadioButton Groups to Enumeration Properties[^] should give you an idea on what you need to do.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900