When I bind a url using the productID field from my access database it returns the wrong value for example as my database starts with the first field as 2 it returns -1, then -2 for 3 and so on.
<a href='details.aspx?ID=<%#Eval("ProductID") %>'>
thanks
Try
<a href="details.aspx?ID='<%#Eval("ProductID") %>'">
or
use asp hyperlink