Adding controls to a page dynamically

Discussion in 'ASP.NET / ASP.NET Core' started by reiji, Jun 2, 2004.

Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.
  1. 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
     
  2. Bruce

    Bruce DiscountASP.NET Staff

    Panel control is another way

    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">
     
  3. 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
     
  4. In front of each control that should appear in a separate row, ad a Literal control with the text property set to "".
     
  5. Thank you very much, Scott!

    - reiji
     
Thread Status:
Threads that have been inactive for 5 years or longer are closed to further replies. Please start a new thread.

Share This Page