ASP.NET + C#
C# Tostring() 格式大全
管理员 发表于2009-01-10 浏览2477 评论0
C# Tostring() 格式大全
ASP.NET + C#
遍例repaeter的checkbox
管理员 发表于2009-01-09 浏览2833 评论0
foreach (Control c in this.Repeater1.Controls)
{
HtmlInputCheckBox check = (HtmlInputCheckBox)c.FindControl("chkSelect");
if( check != null )
{
check.Checked = true;
}
}
方式2:
for (int i=0;i<this.Repeater1.Items.Count;i++)
...