如何存储radiobuttonlist1的多个值? [英] how to store multiple value of radiobuttonlist1?

查看:81
本文介绍了如何存储radiobuttonlist1的多个值?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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?

推荐答案

您可以使用枚举来表示复选框的所有值.
只需存储适当的值即可.

RadioPanel:将RadioButton组绑定到枚举属性 [
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.


这篇关于如何存储radiobuttonlist1的多个值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆