How can I access a data repeater's item by index instead of explicit name?

Posted by CowKingDeluxe on Stack Overflow See other posts from Stack Overflow or by CowKingDeluxe
Published on 2010-05-21T23:37:24Z Indexed on 2010/05/21 23:40 UTC
Read the original article Hit count: 258

Filed under:
|
|
|
|

Right now I'm using the following code in my markup:

<asp:HiddenField ID="TheName" runat="server" Value=<%#Eval("SpeakerName")%> />

I would like to use:

<asp:HiddenField ID="TheName" runat="server" Value=<%#Eval(0)%> />

I would like to be able to call it by index instead of explicitly by "SpeakerName". Is there a way to do this in ASP.NET 4.0?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about ASP.NET