Anmelden | Registrieren | FAQ
Anonymous

Using an #Eval statement

+ Antwort erstellen

3 Beiträge Seite 1 von 1


Using an #Eval statement

von Andrelis » Fr Mär 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?
Benutzeravatar

Andrelis

  • Beiträge: 1
  • Registriert: Fr Mär 07, 2014 10:31 am

Re: Using an #Eval statement

von XainPro » Mo Mär 10, 2014 11:34 am

here is it's example

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


Code: Alles auswählen
<asp:Repeater ID="repeater" runat="server">
        <ItemTemplate>
            <asp:Label ID="lblName" runat="server" Text='<%# Eval("Letter") %>'></asp:Label>
        </ItemTemplate>
    </asp:Repeater>
Benutzeravatar

XainPro

  • Beiträge: 3933
  • Registriert: Fr Feb 17, 2012 8:10 pm

Re: Using an #Eval statement

von apamasaze » Fr Mai 26, 2017 1:28 pm

thanks
your opinion is very good
Benutzeravatar

apamasaze

  • Beiträge: 1
  • Registriert: Fr Mai 26, 2017 1:20 pm


+ Antwort erstellen

Seite 1 von 1