For example,I want to do something like this:
foreach(SPList list in web1.Lists )
{
if(current list is KPI List)
{
DropDownList1.Items.Add(list.Title);
}
}
So if the list is KPI List,I will add it to a DropDownList.
How can I solve it?Thanks!
I guess if you check the ContentTypes property of SPList you should be able to figure that out.