Button btn = new Button(); btn.ID = "Button1"; btn.Click += new EventHandler(btn_Click); // Just an example, you must write the eventhandler yourself btn.Text = "OK"; <Placeholder>.Controls.Add(btn); //put it on page, panel or whereever
Button btn = new Button(); btn.Text = "My Button"; this.Controls.Add(btn);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)