View Single Post
  #4 (permalink)  
Old July 19th, 2007, 03:42 PM
planoie's Avatar
planoie planoie is offline
Friend of Wrox
Points: 16,481, Level: 55
Points: 16,481, Level: 55 Points: 16,481, Level: 55 Points: 16,481, Level: 55
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2003
Location: Clifton Park, New York, USA.
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

Yes, this would be the code for the button click event.

dropdownlist.SelectedValue is the list item value (in your case, yes, the bound value for the field in DataValueField)
dropdownlist.SelectedItem.Text would give you the bound value from the DataTextField field

http://msdn2.microsoft.com/en-us/lib...pdownlist.aspx

-Peter
Reply With Quote