DataTable table = (DataTable)(Session["Image"]);
if (table.Rows.Count > 0)
{
DataTable temporary = new DataTable("Temporary");
temporary = table.Clone();
DataRow[] Row = table.Select("PI_ImageSize=" + 5);
foreach (DataRow row in Row)
{
temporary.Rows.Add(row.ItemArray);
}
DLProduct_More.DataSource = temporary;
DLProduct_More.DataBind();
if (DLProduct_More.Items.Count > 0)
{
MoreOption.Visible = true;
}
else
{
MoreOption.Visible = false;
}
temporary.Dispose();
table.Dispose();
}
else
{
DLProduct_More.DataSource = null;
DLProduct_More.DataBind();
}
评论