This depends on how your web page is set up. Personally I place my dynamice controls in some sort of a container (normally a panel) so I know where at on the page the buttons will render. If you are using a grid layout for your webform you can use a style to position the buttons on your page, however, I think you will find this cumbersome.
Code that adds dynamic controls to a container:
for(int i=0;i<5;i++)
{
Button btn = new Button;
btn.ID = i.ToString();
btn.Click += new System.EventHandler(this.btnClickEventHandler);
panel1.Controls.Add(btn);
}
hth.
================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for:
Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========