Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Simple ASP.NET interface question: hiding controls
Message
De
29/08/2005 13:21:06
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Simple ASP.NET interface question: hiding controls
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:
01044818
Vues:
53
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


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform