使用C#在数据列表中查找控件,但是如何
问题描述:
大家好
谁能在c#
中翻译以下内容
hi all
can any one translate following in c#
foreach (DataListItem item in myDataList.Items)
{
Label myTempLabel = (Label)item.FindControl("myLabel");
// Do what you need to with this label
myTempLabel.Visible = false;
}
感谢
thanks
答
以上代码在C#中!
我已经在这里回答了所有您需要知道的内容:
如何在特定条件下在按钮单击事件中将LABEL隐藏在数据列表中 [ ^ ]
现在是什么请不要指望汤匙输入确切的代码.
Above code is in C#!
I already replied all you need to know here:
how hide LABEL inside datalist under certain condition on button click event[^]
What is it now? Please don''t expect an exact code as a spoon feed.