Controls of Panel Layout problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JimWu
    New Member
    • Aug 2007
    • 14

    Controls of Panel Layout problem

    Do anyone know how to layout in Panel control.

    The code as follows

    Code:
     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.
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    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.

    Comment

    • JimWu
      New Member
      • Aug 2007
      • 14

      #3
      Thanks for your kindly answer.

      Now, I know how to show my wanted page.



      Originally posted by Plater
      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.

      Comment

      Working...