I suspect (though it is difficult to tell) that you want to replace:
if (bugstoreid == names[0].ToString() || bugstoreid == names[1].ToString())
{
return "style='backGround-color:LightBlue'";
}
with
foreach (string name in names)
{
if (bugstoreid == name)
{
return "style='backGround-color:LightBlue'";
}
}
BTW: you do not need to use ToString on a string: it is one already...