asp.net c#:
public void FindImageButton(ControlCollection cc)
{
foreach (Control c in cc)
{
ImageButton ib=c as ImageButton;
if (null!=ib)
{
string s= ib.ID;
}
LinkButton lb = c as LinkButton;
if (null != lb)
{
string s = lb.ID;
}
Button b = c as Button;
if (null != b)
{
string s = b.ID;
}
FindImageButton(c.Controls);
}
}
No comments:
Post a Comment