Hi.
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.