dropdownlist items

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
 
?

=?ISO-8859-1?Q?G=F6ran_Andersson?=

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.).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top