Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 193879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:32:52+00:00 2026-05-11T16:32:52+00:00

I am a newbie if it comes to web site development. I would like

  • 0

I am a newbie if it comes to web site development. I would like to create a web form that would contain controls defined in an XML file. This means that I am going to read the XML file within the Page_Load function and dynamically create and name all controls as defined in the file. This seams to be very easy.

I have, however, another problem, namely the layout. When I add a new control to my form, it is placed next to the control that was created previously. How can I place them one below another or put some spaces before and between them? I thought using the PlaceHolder control would help me, but I couldn’t find any properties that would change the position of the controls parented by it.

Here is how I create a single control:

Label lbl = new Label();
lbl.ID = "lbl";
lbl.Text = "Test";
PlaceHolderMain.Controls.Add(lbl);

Thanks for your help in advance,

Mariusz.

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T16:32:52+00:00Added an answer on May 11, 2026 at 4:32 pm

    You have a few options:

    1. Add additional controls such as a Literal Control where the text is the HTML you want such as a <BR/> tag or nbsp; in between the controls that have been added.
    2. Have multiple Placeholder controls for each appropriate section.
    3. Use CSS to position the controls where you want them. I am not a CSS expert but this can be done but it requires an understanding of CSS positioning.
    4. Add the controls into a parent control such as a table so you can add the controls into a tabel cell within a row. It would mean creating Rows and Cells to add to the table but it would give you more control over the layout.

    Hope this gives you a few ideas that can help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm a newbie when it comes to properties, and I read that XML is
I'm a mostly-newbie when it comes to web development (though not to programming in
I am a newbie when it comes to Ruby On Rails (and web programming
I am a newbie with zend. On the web-site i am building using zend/php,
I have to say that I'm a newbie when it comes to php ,
I'm still a newbie when it comes to Dynamics AX development. I'm working through
I am a total jQuery newbie (well web coding newbie come to that) and
I'm a total newbie when it comes to SQL. I'm making a site in
I'm newbie programmer building a startup that I (naturally) hope will create a large
I'm new to php coding, web development, and search optimization - so newbie overall.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.