G
Greg
I have the following Enum I would like to display in an <aspropDownList>
control. I have no problem getting the names to appear using the .GetNames
method. Thus, None, Male and Female appear in the drop down list as desired.
Pulbick Enum Gender
{
None = 0,
Male = 1,
Female = 2
}
What I want to achieve though is retrieve the assiciated number/id related
to each option so that I can save it to my database. How can I get the value
1, when Male is selected in the DropDownList control?
Thanks
control. I have no problem getting the names to appear using the .GetNames
method. Thus, None, Male and Female appear in the drop down list as desired.
Pulbick Enum Gender
{
None = 0,
Male = 1,
Female = 2
}
What I want to achieve though is retrieve the assiciated number/id related
to each option so that I can save it to my database. How can I get the value
1, when Male is selected in the DropDownList control?
Thanks