Login | Register | FAQ
Anonymous

Using an #Eval statement

+ Post a reply

3 posts Page 1 of 1


Using an #Eval statement

by Andrelis » Fri Mar 07, 2014 10:38 am

Hello, I am trying to get data by using #Eval statement:

<asp:Repeater ID="rptBPData" runat="server" Visible="false">
<ItemTemplate>
<tr>
<td bgcolor="#f4f4f4">
<%#Eval("MDate")%>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>

And I am having problems of getting an array of strings which I need to plot in the chart.
Could you please explain, how to get an array from Eval?
User avatar

Andrelis

  • Posts: 1
  • Joined: Fri Mar 07, 2014 10:31 am

Re: Using an #Eval statement

by XainPro » Mon Mar 10, 2014 11:34 am

here is it's example

Code: Select all
public object RetrievePagingLettersList()
        {
            return new[] {
                new { Letter = "A" }, new { Letter = "B" },
                new { Letter = "C" }, new { Letter = "D" },
                new { Letter = "E" }, new { Letter = "F" } };
        }


Code: Select all
<asp:Repeater ID="repeater" runat="server">
        <ItemTemplate>
            <asp:Label ID="lblName" runat="server" Text='<%# Eval("Letter") %>'></asp:Label>
        </ItemTemplate>
    </asp:Repeater>
User avatar

XainPro

  • Posts: 3933
  • Joined: Fri Feb 17, 2012 8:10 pm

Re: Using an #Eval statement

by apamasaze » Fri May 26, 2017 1:28 pm

thanks
your opinion is very good
User avatar

apamasaze

  • Posts: 1
  • Joined: Fri May 26, 2017 1:20 pm


+ Post a reply

Page 1 of 1