J
John Giblin
I have an asp repeater control which I am trying to assign the
datasorce to it inline. Here is my code.
<asp:Repeater ID="AddOnList" DataSource="<%#
BasketLineDAO.GetByEventCategory(content.Id,10)%>" Runat=server>
This does not work. I do not get any rows from the repeater. but when
I assign the datasource and bind it in the behing code, I do get the
rows
Behind Code:
// AddOn basket
AddOnList.DataSource = BasketLineDAO.GetByEventCategory(content.Id,
10);
AddOnList.DataBind();
This is driving me nuts!
John
datasorce to it inline. Here is my code.
<asp:Repeater ID="AddOnList" DataSource="<%#
BasketLineDAO.GetByEventCategory(content.Id,10)%>" Runat=server>
This does not work. I do not get any rows from the repeater. but when
I assign the datasource and bind it in the behing code, I do get the
rows
Behind Code:
// AddOn basket
AddOnList.DataSource = BasketLineDAO.GetByEventCategory(content.Id,
10);
AddOnList.DataBind();
This is driving me nuts!
John