473,320 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

Panel css not grouping controls

I want to group controls in a panel or placeholder, some of the controls are
added dynamically. How do I control the order the controls appear prior to
using css. And how do I ensure the panels css groups all the control within
the class. When I add controls to the placeholder below dynamically the css
which has a border for panel1 does not go around all of the controls it kind
of goes in a band above the controls rather than surround them. Regards,
chris. My idea is to group the controls with a background colour and border
set in the css for the panel.

<asp:Panel ID="Panel1" runat="server" >

<asp:Label ID="lblstatus" runat="server"></asp:Label>

<asp:PlaceHolder ID="plformgroup" runat="server">

</asp:PlaceHolder>

<asp:Button ID="Button1" runat="server" Text="Button" />
</asp:Panel>


Jan 11 '07 #1
1 2260
bpd
Panel1.Controls.Add(some control)

Chris wrote:
I want to group controls in a panel or placeholder, some of the controls are
added dynamically. How do I control the order the controls appear prior to
using css. And how do I ensure the panels css groups all the control within
the class. When I add controls to the placeholder below dynamically the css
which has a border for panel1 does not go around all of the controls it kind
of goes in a band above the controls rather than surround them. Regards,
chris. My idea is to group the controls with a background colour and border
set in the css for the panel.

<asp:Panel ID="Panel1" runat="server" >

<asp:Label ID="lblstatus" runat="server"></asp:Label>

<asp:PlaceHolder ID="plformgroup" runat="server">

</asp:PlaceHolder>

<asp:Button ID="Button1" runat="server" Text="Button" />
</asp:Panel>
Jan 12 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Mike MacSween | last post by:
tblCourses one to many to tblEvents. A course may have an intro workshop (a type of event), a mid course workshop, a final exam. Or any combination. Or something different in the future. At...
2
by: theComputer7 | last post by:
I cut down the code to make this half way understandable... I have read Data Grid girls caution about over use of dynamic controls. I truly believe what I am doing requires dynamically inserted...
5
by: Robert Phillips | last post by:
I have a Panel control containing a few TextBox controls. The Panel is originally enabled, I enter data into the TextBox controls. When I submit, the Panel is disabled during the PostBack and the...
2
by: scorpion53061 | last post by:
I have several dynamically created controls which exist on a form. When it comes to time to use the panel I add the controls to the panel e.g. Panel1.Controls.Add(Button1) and so on and so...
8
by: =?Utf-8?B?R3JlZyBMYXJzZW4=?= | last post by:
I'm trying to figure out how to modify a panel (panel1) from a backgroundworker thread. But can't get the panel to show the new controls added by the backgroundwork task. Here is my code. In...
1
by: Steve Richter | last post by:
a simple web page that adds controls to a Panel control at run time. Problem is, on PostBack, all the controls I added to the Panel are missing! ViewState is enabled on the panel. What happened to...
1
by: mbruyns | last post by:
i have been trying (and sometimes succeeding) to use the modalpopupextender to show various panels of controls on my asp pages. the strange problem that i keep on running into is that sometimes it...
1
by: kaushik | last post by:
hi there, i am not able to change the color of Groupname in panel control from blue to black. I read somewhere, if i set the forecolour of the panel, both the groupingtext and text are rendered...
2
by: =?Utf-8?B?TUNN?= | last post by:
I have an asp.net page that contains an update panel. Within the update panel, controls get added dynamically. During partial page post backs the controls within the panel will change. I have a...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.