473,408 Members | 1,822 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

trick or treat

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
Oct 5 '06 #1
3 1241
"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:7C**********************************@microsof t.com...
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...?
Oct 5 '06 #2
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.
"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:7C**********************************@microsof t.com...
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

Oct 5 '06 #3
thanks everyone for the replies.

"Mischa Kroon" wrote:
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.
"rodchar" <ro*****@discussions.microsoft.comwrote in message
news:7C**********************************@microsof t.com...
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


Oct 12 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
by: Dan | last post by:
Is there a python equivalent of this trick in C? Logic_Test ? True_Result : False_Result Example: printf( "you have %i %s", num_eggs, num_eggs > 1 ? "eggs" : "egg" );
134
by: Joseph Garvin | last post by:
As someone who learned C first, when I came to Python everytime I read about a new feature it was like, "Whoa! I can do that?!" Slicing, dir(), getattr/setattr, the % operator, all of this was very...
1
by: chandy | last post by:
Hi, How can I treat multiple, contiguous records as one record? i.e., tblData( a varchar, t datetime )
7
by: Steven T. Hatton | last post by:
"Reduced subclassing. Factory Method (107) often produces a hierarchy of Creator classes that parallels the product class hierarchy. The Prototype pattern lets you clone a prototype instead of...
6
by: Ray | last post by:
I have a main form with a subform. The main form has a combo box which lists all the clients which in turn are displayed in the subform. The subform is bound to the combo box and all work well....
11
by: Jeevan | last post by:
Hi, I have some data which I am getting from a socket. I am currently storing the data in an array (so that future reading of the data will be fast as it will be in RAM instead of hard disk)....
29
by: John Rivers | last post by:
Hello, What good reason there is for not allowing methods in ASPX pages I can't imagine, but here is how to get around that limitation: (START) <body MS_POSITIONING="FlowLayout"> <form...
4
by: Boni | last post by:
Dear all, Is there some trick to put controls on a particular control but in other thread. Example: A control is a part of bigger application and application thread freezes somtimes. So a...
15
by: Zhang Weiwu | last post by:
http://www.w3.org/MarkUp/2004/xhtml-faq provided a trick to serve xhtml webpage to IE as application/xml I used that trick and now every one of my xhtml webpage have following first 4 starting...
0
by: Larry Lard | last post by:
Recently we've been on a code quality drive and have eliminated all compilation warnings from our code. To preserve this state, we've turned 'Treat warnings as errors' to 'All' in all our projects...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.