Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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?

Wanna-Be C# Superstar
Posted

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>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...