//
遍历页面所有button,设置其可见属性为false
{
if (btn.GetType().Name == " Button " )
{
// ((TextBox)txtobj).Text = "";
// TextBox tb = new TextBox();
// tb = (TextBox)this.FindControl(txtobj.ID);
// tb.Text = "";
Button bt = new Button();
bt = (Button) this .FindControl(btn.ID);
bt.Visible = true ;
}
}
{
if (btn.GetType().Name == " Button " )
{
// ((TextBox)txtobj).Text = "";
// TextBox tb = new TextBox();
// tb = (TextBox)this.FindControl(txtobj.ID);
// tb.Text = "";
Button bt = new Button();
bt = (Button) this .FindControl(btn.ID);
bt.Visible = true ;
}
}