Hello,
As per your problem,
1. User selects the gender
2. The selected value gets stored in the database.
3. Now if you want to :
- Display the dropdownlist with the selected value:
ddlGender.Items.FindByText(<here put="" the="" value="" coming="" from="" database="">).Selected = true;</here>
- If you want to get the selected text:
ddlGender.SelectedItem.Text
- If you want to get the selected value:
ddlGender.SelectedItem.Value
- If you want to get the selected index:
ddlGender.SelectedIndex
Hope this helps you :)