Simple question ???

G

Guest

Dear all,

I have a web form on which certain controls are visible according to a
certain status.
For example a list box with items is visible only if there are items to be
displayed.

What is the best way in asp.Net to handle such case with dynamic visibility
of controls?

Under windows App we normal place all caontrols on a form and them show or
hide them accordingly, how this should be done under Asp application ?

regards
serge
 
K

Karl Seguin

The same way works fine in ASP.Net.

You can also, like in windows forms, dynamically create and add the
controls...but that's more work.

Karl
 
S

S. Justin Gengo

Serge,

You should do this the same way. Each control has a visibilty parameter. If
a group of controls should be displayed/not displayed based on your
parameter(s) then you should place all relevant controls into a panel and
show/hide the panel.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,810
Latest member
Kassie0918

Latest Threads

Top