loy*_*low 0 c# asp.net repeater
在我的代码隐藏中,我有:
List<Products> products =
rptr.Datasource = products;
protected string GetVariants(Product product)
{
//
}
Run Code Online (Sandbox Code Playgroud)
在我的中继器中,我有:
<itemTemplate>
<li> <%# Eval("Name") %>
<li> <%# GetVariants(?????????????) %>
</itemTemplate>
Run Code Online (Sandbox Code Playgroud)
如何将产品对象传递给GetVariants方法?
归档时间: |
|
查看次数: |
1879 次 |
最近记录: |