ページ上のすべてのボタンの無効化を行ったときに、ID を指定してボタンを有効にしようとしています。ID を持つ特定のボタンに対してどのようにすればよいですか
public static void EnableInsertBtn(Control parent)
{
foreach (Control B in parent.Controls)
{
if (B.GetType() == typeof(Button))
{
((Button)(B)).Enabled = false;
}
if (B.HasControls())
{
EnableInsertBtn(B);
}
}
あなたの提案を願っています
ありがとう