View Single Post
  #2 (permalink)  
Old December 18th, 2007, 07:31 AM
samjudson's Avatar
samjudson samjudson is offline
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

The code is right there in front of you.

<%#DataBinder.Eval(Container.DataItem, "ProductNo")%>

This will give you the ProductNo for the particular row.

<div id="slidingProduct<%#DataBinder.Eval(Container.Dat aItem, "ProductNo")%>" class="sliding_product">

or

<a href="#" onclick="addToBasket('<%#DataBinder.Eval(Container .DataItem, "ProductNo")%>'); return false;">

/- Sam Judson : Wrox Technical Editor -/
Reply With Quote
The Following User Says Thank You to samjudson For This Useful Post:
Meisam.Kimiaei (August 1st, 2012)