Member_2_5230414
asked on
restrict number upto 7
Dim tildays As Decimal = dateallreadybooked.counttilleft(Session("Username"))
While tildays > 0
DropDownList1.Items.Add(New ListItem(tildays, tildays))
tildays -= 0.5
End While
How would i edit the code so the drop down menu will only reach 7
so if tildays = 58 then it will only go upto 7
if till days = 5 it will still show only 5
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thats great,,,, i would have never of thought of that logic!
NP. Glad to help = )
Open in new window