Format on a panel?

VBAHole22

Contributor
Joined
Oct 21, 2003
Messages
432
Location
VA
I like using panels because you can hide and show stuff in blocks rather than writing dozens of .Visible statements. But when you take a nice neat block of label and textbox objects and drag them into a panel they get all jumbled.
And it seems like you don't have any control over formatting at all in a panel. you are the mercy of the IDE as to where stuff goes.
Am I missing something here or is there an easy way to format a panel's contents? Or should I be using something else instead of a panel?
All I really want is 2 blocks of objects that get hidden or show up based on a check box.
Any suggestions?
 
I'd say dont use IDE. Use the HTML, add your panel, add the stuff in it. To position the panel, use CSS.

For example,

<asp:panel runat=server id= whatever cssClass=whatever>
...put your stuff here.

</asp:panel>
 
Back
Top