You can create server controls or Html controls at the page_load event.
you can also attach them to events :
System.Web.UI.WebControls.ListBox oLst = new
System.Web.UI.WebControls.ListBox();
oLst.Enabled = true;
oLst.EnableViewState = true;
oLst.ID = "cboDevQueueList";
oLst.AutoPostBack = true;
oLst.Items.Add ("a");
oLst.Items.Add ("b");
oLst.Visible = true;
oLst.SelectedIndexChanged += new System.EventHandler(this.SelItem);
// ad the control inside the form
("WebForm6").Controls.Add(oLst);
Natty Gur, CTO
Dao2Com Ltd.
28th Baruch Hirsch st. Bnei-Brak
Israel , 51114
Phone Numbers:
Office: +972-(0)3-5786668
Fax: +972-(0)3-5703475
Mobile: +972-(0)58-888377
Know the overall picture
*** Sent via Developersdex
http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!