Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CheckBoxList vs. two Checkboxes

Status
Not open for further replies.

Craftor

Programmer
Feb 1, 2001
420
NZ
Hi all

We are using an application at work that requires a user to indicate (by checking one or both of two checkboxes) whether an item is to appear on one, or both of two sites. My suggestion is to use two ASP Checkboxes but the other developer is set on using a checkbox list. I was under the impression that a checkboxlist is used more for dynamically setting up a series of checkboxes when the amount of checkboxes is uncertain? Such as when a list of items is drawn from a database?

Any feedback in this regard would be much appreciated - as would any corrections to incorrect perceptions that I have formed.

Thanks as always

Craftor

:cool:
 
Just tell the other dev that he/she is being silly and immature, then conk 'em over the head with a rubber mallet!

no no, don't do that.
;)

If it were only ever 2 sites, I could see just two boxes, but IF its possible that in the future the user might need to pick from 3 sites, or 4 sites, or 10 sites, and those sites are derived from the database or some other source of names/values, then the checkbox list makes more sense because its scalable.

And scalable is good.
:)

my .02 cents

D'Arcy
 
Hi D'Arcy

It will only ever be two sites :) client's specification (and yes I know clients are notorious in changing specs).

It's a fixed list - the client has said the item can appear on A, B or A and B - with A and B being static (i.e. I'm not drawing their values from a database anywhere).

*sigh* sometimes the mallet idea is sooo appealing!

Thanks as always for the feedback!

Craftor

:cool:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top