Question
assigning "position" in repeat region
I have a site that runs a contest and displays winners from
across the
nation. Through the year they compete and can go online to see where they
stand in relation to others in their same territory. In order to display
the winner's positions on the page, I sort the underlying data in sql using
the necessary criteria, then on my asp page, as part of the repeat region, I
run code that loops through the recordset and uses an x+1 method of
displaying each person's position. Whether or not this is the best way to
do this, it works.
MY PROBLEM...
Up until now I only needed to display the positions based on one selected
territory. So my results would always simply show 1 -x, in order.
Joe territory1 1
Van territory1 2
Tim territory1 3
Bob territory1 4
NOW I am being asked to show the entire nation on one page for
administrators. They want to see ALL the territories and the positions of
each person for each territory, and have the ability to sort based on
various columns. So now my "positions" column will have several people in
1st position, several in 2nd, etc.
Joe territory1 1
Jen territory2 1
Van territory1 2
Sue territory2 2
Tim territory1 3
Len territory2 3
Bob territory1 4
Ken territory2 4
I'm not sure how to go about this, and would greatly appreciate any advice!
nation. Through the year they compete and can go online to see where they
stand in relation to others in their same territory. In order to display
the winner's positions on the page, I sort the underlying data in sql using
the necessary criteria, then on my asp page, as part of the repeat region, I
run code that loops through the recordset and uses an x+1 method of
displaying each person's position. Whether or not this is the best way to
do this, it works.
MY PROBLEM...
Up until now I only needed to display the positions based on one selected
territory. So my results would always simply show 1 -x, in order.
Joe territory1 1
Van territory1 2
Tim territory1 3
Bob territory1 4
NOW I am being asked to show the entire nation on one page for
administrators. They want to see ALL the territories and the positions of
each person for each territory, and have the ability to sort based on
various columns. So now my "positions" column will have several people in
1st position, several in 2nd, etc.
Joe territory1 1
Jen territory2 1
Van territory1 2
Sue territory2 2
Tim territory1 3
Len territory2 3
Bob territory1 4
Ken territory2 4
I'm not sure how to go about this, and would greatly appreciate any advice!
