Add placeholder controls wherever you might want to add controls. If you don't add anything then nothing is displayed on the page.
To add a control just do the following after you have created the control dynamically.
where phldNew is the placeholder control ID.Code:phldNew.Controls.Add(btnNew);
HTH!
DJ





Reply With Quote