IList<Model_PicLink> PicLinkList=Dal_P.List(" And TypeId=1");
string[] p = new string[PicLinkList.Count];
for (int j=0; j < PicLinkList.Count; j++)
{
if (j == 0)
p[j] = "<li class=\"active\">" + (j + 1) + "</li>";
else
p[j] = "<li>" + (j + 1) + "</li>";
}