使用C#在数据列表中查找控件,但是如何 [英] findng a control in datalist using c# but how
本文介绍了使用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.
这篇关于使用C#在数据列表中查找控件,但是如何的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文