show a select menu according to a rule from Database

W

work4u

My case is from the client site web page, there is a select menu, on a
form,
which dynamically show all data from a database

But the data under this select menu which need to follow a rule which
on a field on database,
that is mean everytime when i change the data on this field, select
menu will show different
order number due to rule change.


for example:


a record in a field: " 1-10|1,10.5-12|0.5,13-10|-1 "

that is mean from list all number from 1 to 10 increase by 1, from
10.5 to 15, increase by 0.5,
and from 16 to 20 increase by 1.


so the select menu will list all the result as followed:


1,2,3,4,5,6,7,8,9,10,10.5,11,11.5,12,13,12,11,10


my question is how to set this rule on this ASP page ?


please reply with the sample code.


thank you very much
 

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

Members online

Forum statistics

Threads
473,744
Messages
2,569,481
Members
44,900
Latest member
Nell636132

Latest Threads

Top