Wednesday, October 9, 2013

Remove Item From DropDown

string cat="value";
 
string[] cata = cat.Split(',');
for (int d = 0; d < cata.Length - 1; d++)
{
     DDLCategory.Items.Remove(DDLCategory.Items.FindByText(cata[d].ToString()));
}

No comments:

Post a Comment

Opps Part 1 : Abstraction

  Abstraction in C# is a fundamental concept of object-oriented programming (OOP) that allows developers t...