H
hui1452
Unregistered / Unconfirmed
GUEST, unregistred user!
我在某一Button的onclick事件中寫如下代碼.新建一Button,但我在點擊此Button時,此Button確不見,請問如何解決.(在網頁生成後再執行此操作)
Button nbutton =new Button();
nbutton.Text="Ok";
nbutton.ID="nbutton";
nbutton.CommandName="nbutton";
nbutton.Click+=new System.EventHandler(this.Calculate);
ItemParcel.Controls.Add(nbutton);
Button nbutton =new Button();
nbutton.Text="Ok";
nbutton.ID="nbutton";
nbutton.CommandName="nbutton";
nbutton.Click+=new System.EventHandler(this.Calculate);
ItemParcel.Controls.Add(nbutton);