Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting a Session value on a Layer

Status
Not open for further replies.

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 ...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top