Click here to Skip to main content
13,049,684 members (63,993 online)
Rate this:
Please Sign up or sign in to vote.
See more:

i am working on web application and i am using drop down list for fetching value from the database i want to count the those item which is selected by the user from the dropdownlist in web application.

any one can help me.

thank you
Posted 2-May-13 20:45pm
KM Perumal 3-May-13 2:54am
supriya931 What have you tried so far?
supriya931 3-May-13 3:05am
i am trying to count only selected item by the user from the dropdown list
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

you can select only one item in drop down list and many in list box list.
Johnny J. 3-May-13 3:42am
So, if you only selected one item (which is all you can select), the count of selected items is 1! Problem solved!
supriya931 3-May-13 3:51am
no i want to compare the dropdownlist item and dropdownselected item from list because if user select 2nd item firstly and after that first item selected then hows it possible to count both item as 2 item selected
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

You can select only one item in every drop down menu. I recommend you use listbox with Multiselect = True property.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 5 May 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100