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

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top