Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple ASP.NET interface question: hiding controls
Message
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:
01044859
Vues:
8
Visibility turns off all rendering so if you set visible to false you get exactly - nothing <g>. IOW, if you're getting extra spaces it's because it's in your HTML.

This is always tricky, because you want the spaces when it displays, not when it doesn't so a lot of times I have routines that add extra
/

at the end when rendering.

+++ Rick ---

>On my way to learning this thing called ASP.NET <g>:
>
>In v1.1 I have a form that has a few labels, dropdowns and textboxes to gather parameters from the user to produce a report. The queries and calculations are done (in a class) and returned as an HTML Table. It is a single page deal. There is an if() checking for PostBack. If PostBack=true then it sets all the page controls.visible property to false and then shows the HTML Table with the results.
>
>I did not see an automatic way for the controls to dissappear by themselves on PostBack so I just turn them invisible but the space where they are is still used as blank rows, therefore the table starts very low on the page.
>
>What is the proper way to hide the controls not wasting their screen real estate?
>
>TIA

+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform