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

📱Build WhatsApp Bot using .NET + OpenAI

   In this article, you will learn how to build a real-world WhatsApp chatbot using ASP.NET Core and OpenAI. This bot can automatically repl...