for (int i = 0; i < this.DataList1.Items.Count; i++)
{
if (this.DataList1.Items[i].ItemType == ListItemType.Header)
{
((LinkButton)DataList1.Items[i].FindControl("LinkButton5")).Enabled = false;
((LinkButton)DataList1.Items[i].FindControl("LinkButton6")).Enabled = false;
}
}
这样不行啊
{
if (this.DataList1.Items[i].ItemType == ListItemType.Header)
{
((LinkButton)DataList1.Items[i].FindControl("LinkButton5")).Enabled = false;
((LinkButton)DataList1.Items[i].FindControl("LinkButton6")).Enabled = false;
}
}
这样不行啊
C#发烧友QQ群1:5953354 QQ群2:68096127 QQ群3:30217249 QQ群4:37023079 为了更好方便大家交流学习,请不要重复加群