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

Complete Authentication System in ASP.NET Core using JWT

JWT (JSON Web Token) authentication is widely used for securing APIs in modern applications. In this article, we will build a complete authe...