jackmoore/colorbox — Issue #157: Colorbox opens only the first Image
Author: voletykiran
Created: 2012-02-11 20:03:53+00:00
State: open

First thanks for the nice plugin,
I am trying to load images from folder and displaying them from my codebehind page as shown below and I would like to open them in colorbox when the thumbnails are clicked.

Here is my code:
For Each imageURL As String In urls
Dim img = New System.Web.UI.WebControls.Image()
img.ImageUrl = imageURL
img.Attributes.Add("href", "WatermarkedImages/" & Session("tempDir").ToString & "/" & filename)
img.Attributes.Add("rel", "group2")
img.Width = 75
img.Height = 50
img.CssClass = "clickImage"
img.ImageAlign = HorizontalAlign.Left
Me.FinalPreview.Controls.Add(img)
Next
Next

And this is how I'm calling it:

The problem is whenever I click on any thumbnail only the first Image opens and dosen't show previous and next icons.

Can you please solve me this issue as soon as possible.