A
Abhishek Srivastava
Hello All,
What is the syntax to bind a Repeater control to an Array of objects
I have an array of objects of type Person
Person
{
public int id;
public string name;
}
I tried this one but it didn't work.
<asp:Repeater Id='rep1' runat='server'>
<ItemTemplate>
<%#DataBinder.Eval(Container.DataItem, "id") %> <br/>
</ItemTemplate>
</asp:Repeater>
Thanks for your help in advance.
regards,
Abhishek.
What is the syntax to bind a Repeater control to an Array of objects
I have an array of objects of type Person
Person
{
public int id;
public string name;
}
I tried this one but it didn't work.
<asp:Repeater Id='rep1' runat='server'>
<ItemTemplate>
<%#DataBinder.Eval(Container.DataItem, "id") %> <br/>
</ItemTemplate>
</asp:Repeater>
Thanks for your help in advance.
regards,
Abhishek.