gi11iesm
Programmer
- Sep 18, 2008
- 2
I'm new to VB.NET, so sorry if this is a stupid question, but any help would be great !!!!!
I am writing a thumnbail Photo Gallery Page, I have it all working OK, but I am trying to put some tracking on the gallery that writes to database, just so I know what photos are been looked at. I use an iframe of the size 0x0 that calls a page call tracking.aspx that writes the value of a Session called CurrentPhoto to the database, every time it is called.
The problem is that I am using DIV Layers to display the images, in a Datalist, I am trying to set a session value to get the current images name, but I am having problems setting this on the layer ...
I have tried
<% Session("currentPhoto") = Page.FindControl("photoTitle") %> ......... photoTitle been the name of a label that displays the title under the photos ..... this does not work, and gives a null value.
I have also tried.
<% Session("currentPhoto") = DataBinder.Eval(Container.DataItem,"photo)title") %> ........ that does not work either ..
Any suggestions would be great ...
I am writing a thumnbail Photo Gallery Page, I have it all working OK, but I am trying to put some tracking on the gallery that writes to database, just so I know what photos are been looked at. I use an iframe of the size 0x0 that calls a page call tracking.aspx that writes the value of a Session called CurrentPhoto to the database, every time it is called.
The problem is that I am using DIV Layers to display the images, in a Datalist, I am trying to set a session value to get the current images name, but I am having problems setting this on the layer ...
I have tried
<% Session("currentPhoto") = Page.FindControl("photoTitle") %> ......... photoTitle been the name of a label that displays the title under the photos ..... this does not work, and gives a null value.
I have also tried.
<% Session("currentPhoto") = DataBinder.Eval(Container.DataItem,"photo)title") %> ........ that does not work either ..
Any suggestions would be great ...