Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple ASP.NET interface question: hiding controls
Message
 
 
À
29/08/2005 13:39:01
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
01044818
Message ID:
01044832
Vues:
12
This message has been marked as a message which has helped to the initial question of the thread.
>>One thing you might want to consider is instead of using HTML table, use ASP:table and ASP:TableRow. These are very easy to hide by simply setting the property to invisible. And they don't take any space, I think because they are server-side controls.
>>
>>I place all my controls that have to be displayed based on user setting in those tables (ASP:Table) and I have not seen extra space problem.
>>
>>HTH.

>
>
>My fault. I did use an ASP:Table but didn't mention it. I just realized that I had a bunch of hard-coded (BR) that of course are not made invisible. I deleted them and then pressed ENTER inthe IDE which creates DIVs instead of (BR) to separate rows. Duh!
>
>Thanks.

Glad you solved the problem. But what I didn't mention is that when I set the property to invisible, I do it to the entire row of the table, not to a control. Therefore, even if you have a BR inside the row, all of it will be invisible.
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform