PDA

View Full Version : Adding controls to a page dynamically


reiji
06-02-2004, 01:30 AM
I am thinking about using the Placeholder control to add more controls to a page at runtime. But how do I control the positioning of the newly added controls?

What are the other ways to add controls dynamically?

Thanks.

- reiji

bruce
06-02-2004, 02:04 AM
Panel control is another way

[b]quote:Originally posted by reiji

I am thinking about using the Placeholder control to add more controls to a page at runtime. But how do I control the positioning of the newly added controls?

What are the other ways to add controls dynamically?

Thanks.

- reiji
</blockquote id="quote"></font id="quote">

reiji
06-02-2004, 10:26 AM
Thank you Bruce.

But how do I position the new controls? All I want, for the moment, is to wrap them around. I tested with a bunch of buttons, they just keep going one after another. How do I place them in separate rows?

- reiji

Scott
06-03-2004, 04:13 AM
In front of each control that should appear in a separate row, ad a Literal control with the text property set to "[b]".

reiji
06-03-2004, 04:38 AM
Thank you very much, Scott!

- reiji