Click here to Skip to main content
12,998,776 members (72,366 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
I want to take value of drop down list.. All those values are in String. Ex.
MArital Status:
Married
UnMarried
Widowed

but in enum file i have declared them by
married = 1
unmarried = 2
widowed = 3.

so if i select widowed then i must get 3. how can i get int value from this drop down list ???
Posted 7-Nov-12 19:26pm

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

take all the data in array / list and bind that array into dropdownlist
  Permalink  

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.170622.1 | Last Updated 8 Nov 2012
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