View Single Post
  #9 (permalink)  
Old July 20th, 2007, 08:35 AM
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

I gave you the exact code to use.

<dropdownlist>.SelectedValue returns the "selected value".

The "DataValueField" of the drop down list is the property used to tell the drop down list control what data field or property of the object specified in "DataSource" the drop down list option value should be bound to. (This is why I linked you to the Docs so you could read about the various properties you are using to understand what they do.)

Let's try again:

strNewPage = string.Format(strNewPage, Country_Select.SelectedValue, State_Select.SelectedValue, Price_Select.SelectedValue);

-Peter
Reply With Quote