Output DataList Item Index!

A

Adam Knight

Hi all,

I am wanting to display a data lists item index inline in a script.
Meaning not from code behind but <%# %> ect.

Obviously i can display a dataitem by using:
<%# Container.DataItem("qtext") %>

What i want to do is prepend the datalist item index to the previous text.

Is this possible?

Any help appreciated.

Adam
 
M

Mr Newbie

<%# MyTextToPrePendVariable & MyDataItemExpression %>

or

<%# "MyTextToPrePend is added to " & "MyDataItemExpression" %>


HTH Mr N
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top