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;
}
}
}
转载于:https://www.cnblogs.com/hsxiaoma/archive/2011/04/02/2003101.html