Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in .NET only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Member List
Calendar
Today's Posts
Home
Forum
Topic
.NET
List Box
List Box
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
dayanandk
New Member
Join Date:
Feb 2008
Posts:
1
#1
List Box
Feb 6 '08, 09:23 AM
How to copy all the values from one listbox to another listbox at atime
please reply to me as early as possible
gkn
New Member
Join Date:
Feb 2008
Posts:
4
#2
Feb 6 '08, 04:06 PM
Originally posted by
dayanandk
How to copy all the values from one listbox to another listbox at atime
please reply to me as early as possible
Do you want to copy values at the same time to both list boxes or want to copy from one list box to another when you click button?
Comment
Post
Cancel
gauthambr83
New Member
Join Date:
Feb 2008
Posts:
8
#3
Feb 9 '08, 07:05 AM
ListBox
Originally posted by
dayanandk
How to copy all the values from one listbox to another listbox at atime
please reply to me as early as possible
protected void btnSelectAll_Cl ick(object sender, EventArgs e)
{
foreach (ListItem list in ListBox1.Items)
{
ListItem lst = new ListItem();
lst.Value = list.Value;
lst.Text = list.Text;
ListBox2.Items. Add(lst);
}
}
Correct me if am wrong.
Last edited by
gauthambr83
;
Feb 9 '08, 07:22 AM
.
Reason:
Coding
Comment
Post
Cancel
Previous
template
Next
Working...
OK
OK
Cancel
👍
👎
☕
Comment