Do anyone know how to layout in Panel control.
The code as follows
-
-
labels[0].Text = "Album Name :";
-
labels[1].Text = "Title :";
-
labels[2].Text = "Tag :";
-
labels[3].Text = "Description :";
-
textboxs[0].Text = "";
-
textboxs[1].Text = _fileName;
-
textboxs[2].Text = "";
-
textboxs[3].Text = "";
-
-
images.ImageUrl = "./jpgs/" + a.getFileWithoutExt() + "_small.jpg";
-
-
-
panels[_iFile].Controls.Add(labels[0]);
-
panels[_iFile].Controls.Add(droplists[0]);
-
panels[_iFile].Controls.Add(new LiteralControl("<a href='#' onclick='popup();'>add</a>"));
-
panels[_iFile].Controls.Add(new LiteralControl("<br>"));
-
-
panels[_iFile].Controls.Add(labels[1]);
-
panels[_iFile].Controls.Add(droplists[1]);
-
panels[_iFile].Controls.Add(new LiteralControl("<a href='#' onclick='popup();'>add</a>"));
-
panels[_iFile].Controls.Add(new LiteralControl("<br>"));
-
-
panels[_iFile].Controls.Add(labels[2]);
-
panels[_iFile].Controls.Add(textboxs[ 2]);
-
panels[_iFile].Controls.Add(new LiteralControl("<br>"));
-
-
panels[_iFile].Controls.Add(labels[3]);
-
panels[_iFile].Controls.Add(textboxs[3]);
-
panels[_iFile].Controls.Add(new LiteralControl("<br>"));
-
-
panels[_iFile].Controls.Add(images[_iFile]);
-
-
form.Controls.Add(panels[_iFile]);
-
-
I wander to know how to layout in Panel's inside sub controls such as textBox, Label and etc.
Since we add a new control to the panel, the controls is so closing next incoming new control.
So I want to use like Css apperence to my page.
Cound anyone know how to use formatted layout in my page.
Thanks for any kindly help.
Jim.