Thread: Question Problem with Array.IndexOf
View Single Post
  #5 (permalink)  
Old 06-26-2009, 7:05 PM
Coffer Coffer is offline
VB.NET Forum Newbie
.NET Framework: .NET 2.0 (VS 2005)
 
Join Date: Jun 2009
Age: 30
Posts: 5
Reputation: 0
Coffer is on a distinguished programming path ahead
Default

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...
Reply With Quote