Avatar of AlHal2
AlHal2Flag for United Kingdom of Great Britain and Northern Ireland asked on

Using dropdown and listboxes to enable user selection

Please see the attached file.
The program should allow users to select one or more options from the dropdown boxes.  The selected option gets put into the listbox.  When the user presses apply filter the items in the list box get sent to the stored procedure.
To make it work I use textboxes and hidden fields with javascript.
I want to make the textboxes eg txtfilenamecode invisible or at least disabled.  However this causes the program to fail.  
Any suggestions?
FileCollection.txt
.NET Programming

Avatar of undefined
Last Comment
AlHal2

8/22/2022 - Mon
Shaun Kline

What you are describing fits more inline when using the CheckboxList control. Is there a design reason that you are using drop-down controls and list boxes to allow for multiple selections?

You can make textboxes invisible the using CSS which will not affect postback that you comment about in the attachment. To do this, add either a CssClass with a "display: none;" or add directly to your control a style property.
ASKER
AlHal2

How would you use a checkboxlist if a dropdownbox could have hundreds of items?  I found it clogged up the web page, so was seeking an alternative.
ASKER CERTIFIED SOLUTION
Shaun Kline

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
ASKER
AlHal2

thanks.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy