471,066 Members | 1,294 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,066 software developers and data experts.

Controls of Panel Layout problem

JimWu
14
Do anyone know how to layout in Panel control.

The code as follows

Expand|Select|Wrap|Line Numbers
  1.  
  2.  labels[0].Text = "Album Name :";
  3.  labels[1].Text = "Title :";
  4.  labels[2].Text = "Tag :";
  5.  labels[3].Text = "Description :";
  6.  textboxs[0].Text = "";
  7.  textboxs[1].Text = _fileName;
  8.  textboxs[2].Text = "";
  9.  textboxs[3].Text = "";
  10.  
  11.   images.ImageUrl = "./jpgs/" + a.getFileWithoutExt() + "_small.jpg";
  12.  
  13.  
  14.   panels[_iFile].Controls.Add(labels[0]);
  15.   panels[_iFile].Controls.Add(droplists[0]);
  16.   panels[_iFile].Controls.Add(new LiteralControl("<a href='#' onclick='popup();'>add</a>"));
  17.   panels[_iFile].Controls.Add(new LiteralControl("<br>"));
  18.  
  19.   panels[_iFile].Controls.Add(labels[1]);
  20.   panels[_iFile].Controls.Add(droplists[1]);
  21.   panels[_iFile].Controls.Add(new LiteralControl("<a href='#' onclick='popup();'>add</a>"));
  22.   panels[_iFile].Controls.Add(new LiteralControl("<br>"));
  23.  
  24.   panels[_iFile].Controls.Add(labels[2]);
  25.   panels[_iFile].Controls.Add(textboxs[ 2]);
  26.   panels[_iFile].Controls.Add(new LiteralControl("<br>"));
  27.  
  28.  panels[_iFile].Controls.Add(labels[3]);
  29.   panels[_iFile].Controls.Add(textboxs[3]);
  30.   panels[_iFile].Controls.Add(new LiteralControl("<br>"));
  31.  
  32.   panels[_iFile].Controls.Add(images[_iFile]);
  33.  
  34.    form.Controls.Add(panels[_iFile]);
  35.  
  36.  
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.
Aug 29 '07 #1
2 1341
Plater
7,872 Expert 4TB
If this is a web application, none of that code matters to your layout in a sense.
You can just use CSS to control where they go.
Aug 29 '07 #2
JimWu
14
Thanks for your kindly answer.

Now, I know how to show my wanted page.



If this is a web application, none of that code matters to your layout in a sense.
You can just use CSS to control where they go.
Aug 30 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

7 posts views Thread by astro | last post: by
3 posts views Thread by =?Utf-8?B?RnJhbmsgVXJheQ==?= | last post: by
32 posts views Thread by =?Utf-8?B?U2l2?= | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.