Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post May 05, 2012 01:05 AM by YunJiang
Member
40 Points
256 Posts
Apr 30, 2012 05:09 AM|LINK
Hi All,
Im looking example with checkbox listed listboxes i.e. Source Listbox and destination listbox
From where we can suffle the items from on listbox to another.
Please refer some code snippets
210 Points
51 Posts
Apr 30, 2012 05:25 AM|LINK
Hello,
What task do youwant to perform? Do you want to perform the ordering?
All-Star
16394 Points
3170 Posts
Can't you use CheckBoxList.
95275 Points
14072 Posts
Apr 30, 2012 01:35 PM|LINK
dotnet_CH From where we can suffle the items from on listbox to another.
http://www.codeproject.com/Articles/19698/How-to-Move-List-Box-Items-to-another-List-Box-in
Thanks,
Participant
1124 Points
122 Posts
May 05, 2012 01:05 AM|LINK
Are you looking for this:
<asp:CheckBoxList ID="cbxlang" runat="server"> <asp:ListItem Text="C" Value="C"></asp:ListItem> <asp:ListItem Text="C++" Value="C++"></asp:ListItem> <asp:ListItem Text="Java" Value="Java"></asp:ListItem> <asp:ListItem Text="csharp" Value="csharp"></asp:ListItem> </asp:CheckBoxList> <asp:ListBox ID="lstDesired" runat="server"></asp:ListBox> <asp:Button ID="Button2" runat="server" Text="RemoveTo" onclick="Button2_Click" />
protected void Button2_Click(object sender, EventArgs e) { lstDesired.Items.Clear(); foreach (ListItem item in cbxlang.Items) { if (item.Selected) { lstDesired.Items.Add(new ListItem(item.Value, item.Value)); } } }
dotnet_CH
Member
40 Points
256 Posts
Checkbox Listboxes controls
Apr 30, 2012 05:09 AM|LINK
Hi All,
Im looking example with checkbox listed listboxes i.e. Source Listbox and destination listbox
From where we can suffle the items from on listbox to another.
Please refer some code snippets
Ashley.Jones
Member
210 Points
51 Posts
Re: Checkbox Listboxes controls
Apr 30, 2012 05:25 AM|LINK
Hello,
What task do youwant to perform? Do you want to perform the ordering?
nijhawan.sau...
All-Star
16394 Points
3170 Posts
Re: Checkbox Listboxes controls
Apr 30, 2012 05:25 AM|LINK
Can't you use CheckBoxList.
ramiramilu
All-Star
95275 Points
14072 Posts
Re: Checkbox Listboxes controls
Apr 30, 2012 01:35 PM|LINK
http://www.codeproject.com/Articles/19698/How-to-Move-List-Box-Items-to-another-List-Box-in
Thanks,
JumpStart
YunJiang
Participant
1124 Points
122 Posts
Re: Checkbox Listboxes controls
May 05, 2012 01:05 AM|LINK
Are you looking for this:
<asp:CheckBoxList ID="cbxlang" runat="server"> <asp:ListItem Text="C" Value="C"></asp:ListItem> <asp:ListItem Text="C++" Value="C++"></asp:ListItem> <asp:ListItem Text="Java" Value="Java"></asp:ListItem> <asp:ListItem Text="csharp" Value="csharp"></asp:ListItem> </asp:CheckBoxList> <asp:ListBox ID="lstDesired" runat="server"></asp:ListBox> <asp:Button ID="Button2" runat="server" Text="RemoveTo" onclick="Button2_Click" />protected void Button2_Click(object sender, EventArgs e) { lstDesired.Items.Clear(); foreach (ListItem item in cbxlang.Items) { if (item.Selected) { lstDesired.Items.Add(new ListItem(item.Value, item.Value)); } } }