Record Number

  • Thread starter Thread starter TCORDON
  • Start date Start date
T

TCORDON

How can I print in HTML the record number (of the current item being bound)
from the data set (not a field value) using something like this:

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

TIA!!
 
If you want to know the index of the item, you can do

<%# Container.ItemIndex %>

Not sure if this is what you mean however...

Karl
 
Thanks, that was exactly it.

Karl Seguin said:
If you want to know the index of the item, you can do

<%# Container.ItemIndex %>

Not sure if this is what you mean however...

Karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top