開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服
首頁
好書
留言交流
下載APP
聯(lián)系客服
2010.12.30
foreach (Control btn in this.Page.Controls) //遍歷頁面所有button,設(shè)置其可見屬性為false{
if (btn.GetType().Name == "Button") { Button bt=new Button(); bt=(Button)this.FindControl(btn.ID); bt.Visible=true;
} }
微信登錄中...請勿關(guān)閉此頁面