Hi,
This might be a simple one, but i am all out of ideas.
I am calling data from a contact table in my sql express database. There are 5 pages of results being displayed, and each page has 20 results.
Next to each result is a checkbox that hold the uniqueid for that contact,this is done using a do while loop in classic ASP / HTML.
What i am doing is,checking a few boxes on the first page and clicking the next link to see the next 20 results, and again picking a random few. Each time you click the next page link the i am taking the uniqueid's and storing them in a session variable. ready to put in the database.
PROBLEM:
The problem is, once i get to the second page to select the next x amount of records, my Session("results") variable looks like this:
uniqueid, uniqueid, uniqueid, uniqueid
Which i great because i can use the split function and an array to break them up an insert them into my table. When i submit the second page to build up the uniqueid's into my session var i get this:
page one's values:
uniqueid, uniqueid, uniqueid, uniqueid
page two's values:
uniqueid, uniqueid, uniqueid
The issue thats breaking my logic is when i concatenate page one and page two's values the last uniqueid of page one and the first uniqueid of page 2 do not have a comma separating them, so my splitting of the uniqueid's in my array where a comma exists causes me an issue.
I know thats a long one, but any ideas would be really help full.
Thanks
This might be a simple one, but i am all out of ideas.
I am calling data from a contact table in my sql express database. There are 5 pages of results being displayed, and each page has 20 results.
Next to each result is a checkbox that hold the uniqueid for that contact,this is done using a do while loop in classic ASP / HTML.
What i am doing is,checking a few boxes on the first page and clicking the next link to see the next 20 results, and again picking a random few. Each time you click the next page link the i am taking the uniqueid's and storing them in a session variable. ready to put in the database.
PROBLEM:
The problem is, once i get to the second page to select the next x amount of records, my Session("results") variable looks like this:
uniqueid, uniqueid, uniqueid, uniqueid
Which i great because i can use the split function and an array to break them up an insert them into my table. When i submit the second page to build up the uniqueid's into my session var i get this:
page one's values:
uniqueid, uniqueid, uniqueid, uniqueid
page two's values:
uniqueid, uniqueid, uniqueid
The issue thats breaking my logic is when i concatenate page one and page two's values the last uniqueid of page one and the first uniqueid of page 2 do not have a comma separating them, so my splitting of the uniqueid's in my array where a comma exists causes me an issue.
I know thats a long one, but any ideas would be really help full.
Thanks