The need to split a QueryString and have a count beside each value was needed in this most recent addition to our music site.
In the actual project, I am inserting the data into a
SQL Server« database.
So I needed a count for each item to build the Order structure to reassemble the QueryString in the proper order.
The website is so massive and complex that this was the easiest and fastest way to perform an actual page count.
Example:
FullURL:
Main.asp?Type=Code&CodeID=1&Visitor=4Rewrite:
Code/1/4
| Order |
Value |
| 1 |
Code |
| 2 |
1 |
| 3 |
4 |
An example code for the project.
(Copy the code, paste it into a new file, save it as Main.asp, and run it with a QueryString
Main.asp?Type=Code&CodeID=1&Visitor=4)