In my codebehind I have:
List<Products> products =
rptr.Datasource = products;
protected string GetVariants(Product product)
{
//
}
In my repeater I have:
<itemTemplate>
<li> <%# Eval("Name") %>
<li> <%# GetVariants(?????????????) %>
</itemTemplate>
How do I pass the product object to the GetVariants method?
(Product)Container.DataItemshould do the trick