data binding expression for List<int>

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Danny Ni

    data binding expression for List<int>

    Hi,

    I am using a method created by other, the function returns List<int>. If I
    bind this to a Repeater, what should the data binding expresssion looks
    like? <%# Eval("I don't know what to put in here") %>

    TIA


  • Pavel Minaev

    #2
    Re: data binding expression for List&lt;int&gt;

    On Aug 6, 9:01 am, "Danny Ni" <d...@yahoo.com wrote:
    Hi,
    >
    I am using a method created by other, the function returns List<int>. If I
    bind this to a Repeater, what should the data binding expresssion looks
    like?  <%# Eval("I don't know what to put in here") %>
    Eval() is specifically for accessing properties of object, you do not
    need that here. Just use:

    <%# GetDataItem() %>

    (this is Page.GetDataIte m() that gets called here, in case you want to
    look that up on MSDN)

    Comment

    Working...