日期:2014-05-20 浏览次数:20699 次
var c = from cc in hr.As_company select new { cc.Tb_company.id,Tb_addxinxi=(from gg in hr.As_addcompanyxinxi where gg.Tb_company.id==cc.Tb_company.id select gg.Tb_addxinxi)}; ViewData["c"]=c;
<% Repeater2.DataSource = ViewData["c"];%> <% Repeater2.DataBind();%> <asp:Repeater ID="Repeater2" runat="server"> <ItemTemplate> <%#Eval("id")%> <%#Eval("Tb_addxinxi")%> <---问题出在这里! </ItemTemplate> </asp:Repeater>
<ItemTemplate> <%#Eval("id")%> <uc1:myApp1 ID="app1" runat="server" datas="<%#Eval("Tb_addxinxi")%>" /> </ItemTemplate>