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

Integrating OpenAI / ChatGPT in ASP.NET Core Web API

 This guide shows how to build a production-ready AI API using ASP.NET Core with: Clean Architecture, streaming responses, database storage,...