interviews.dotnetthread.com

↑ Grab this Headline Animator

Wednesday, May 14, 2008

How to copy items from one DropDownList control to another DropDownList control.

Write following code
foreach (ListItem item in drop1.Items)
{
drop2.Items.Add(item);
}
Where drop1 is the id of first DropDownList and drop2 is the id of second DropDownList control.

Submit this story to DotNetKicks

No comments:

Post a Comment

Post your comments/questions/feedback for this Article.

 

Latest Articles