trick or treat

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,
anybody have any neat ways to handle control state on a web page? for
example i have a lot of buttons on my page that i have to constantly enable
and disable on postback but it gets kinda confusing if i'm not careful.

any ideas?

thanks,
rodchar
 
anybody have any neat ways to handle control state on a web page? for
example i have a lot of buttons on my page that i have to constantly
enable
and disable on postback but it gets kinda confusing if i'm not careful.

any ideas?

It's a little difficult to tell because you've provided (almost) no
information whatsoever...

Why does it get confusing...? A button is enabled or disabled - what's so
confusing about that...?
 
Use panels to group.

So instead of doing:
control1.visible = false

you can do
panel1.visible = false

Where the panel can contain a group of controls.
Then just give the panels logical names.

If this doesn't solve your problem please supply more information.
 
thanks everyone for the replies.

Mischa Kroon said:
Use panels to group.

So instead of doing:
control1.visible = false

you can do
panel1.visible = false

Where the panel can contain a group of controls.
Then just give the panels logical names.

If this doesn't solve your problem please supply more information.
 
Back
Top