The function is used to display a navigational structure for an image gallery. Request.QueryString("i") returns the filename of the image currently displayed on the screen. With this information I can add "previous" and "next" buttons on the page.
Request.QueryString("i") returns the current Filename.
Code:
lblcuridx.Text = "index of " & Request.QueryString("i") & ".jpg is " & CurrentIndex
The code above should (if everything worked as expected) show "index of IMG_0370.jpg is 12 (as the 12th index in the array holds the value IMG_0370).
I have tried to write it as a string of variables as you described. Yet the code returns "0" despite the position in the array...