asp.net 循环给lable赋值

  

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();

posted @ 2013-03-27 10:12  yellowshorts  阅读(1233)  评论(0编辑  收藏  举报