Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
User Controls and hiding some controls inside
Message
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
User Controls and hiding some controls inside
Environment versions
OS:
Windows XP
Database:
MS SQL Server
Miscellaneous
Thread ID:
01323205
Message ID:
01323205
Views:
59
Hi everybody,

In my user control I have certain controls that I don't want to always show. So, I put them into the panel and added properties like this, for example:
[Description("Do we want to show parents information?"), DefaultValue(true), Category("User-Defined")]

    public bool ShowParents
    {
        get { return this.pnlParents.Visible; }
        set { this.pnlParents.Visible = value; }
    }
However, perhaps of the panel, my labels are no longer alighned. I'm wondering if there is a better way to hide certain controls by setting some property on the page.

I can not manipulate div tag inside the server side code, any ideas?

Thanks a lot in advance.
If it's not broken, fix it until it is.


My Blog
Reply
Map
View

Click here to load this message in the networking platform