Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
User Controls and hiding some controls inside
Message
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
User Controls and hiding some controls inside
Versions des environnements
OS:
Windows XP
Database:
MS SQL Server
Divers
Thread ID:
01323205
Message ID:
01323205
Vues:
60
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
Répondre
Fil
Voir

Click here to load this message in the networking platform