for(int i=0:i<ds.Table[0].Rows.Count:i++)
{
Label tb=Page.Master.FindControl("").FindControl("Lable"+(i+1)) as Lable;
tb.Text=ds.Table[0].Rows[i]["title"].Tostring();
}
for(int i=0:i<ds.Table[0].Rows.Count:i++)
{
Label tb=Page.Master.FindControl("").FindControl("Lable"+(i+1)) as Lable;
tb.Text=ds.Table[0].Rows[i]["title"].Tostring();
}
转载于:https://www.cnblogs.com/Yellowshorts/archive/2013/03/27/2984032.html