dropdownlist items

  • Thread starter Thread starter hema pilla
  • Start date Start date
H

hema pilla

i want to get some values from some range ,i want to send the range from the dropdownlist and to search any records are there in that range and also to display that recoards in gridview.im not able to understand how to give the items in the dropdownlist and how to get the records that satisifies the condition.

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com
 
hema said:
i want to get some values from some range ,i want to send the range from the dropdownlist and to search any records are there in that range and also to display that recoards in gridview.im not able to understand how to give the items in the dropdownlist and how to get the records that satisifies the condition.

EggHeadCafe.com - .NET Developer Portal of Choice
http://www.eggheadcafe.com

If I understand you correctly, you want each item in a dropdown list to
represent a range, e.g. age 0-10, 10-20, 20-30, et.c.

A range is described as two values, but an item in a dropdown list only
represent a single value, so you have to either turn the two values into
a single value that you can parse (like "0;10", "10;20", et.c.), or give
each range an identity (1 means 0-10, 2 means 10-20, et.c.).
 
Back
Top