动态设置control的显示与隐藏
public static void HideButton(Control parent, String buttonId) { if ( parent != null && !String.IsNullOrEmpty(buttonId) ) { Control btn = parent.FindControl(buttonId) as Control; if ( btn != null ) { btn.Visible = false; } } }
public static void HideButton(Control parent, String buttonId) { if ( parent != null && !String.IsNullOrEmpty(buttonId) ) { Control btn = parent.FindControl(buttonId) as Control; if ( btn != null ) { btn.Visible = false; } } }