日期:2014-05-17 浏览次数:20448 次
<asp:Repeater ID="Repeater2" runat="server">
<ItemTemplate>
<div class="address2">
<div style="width: 70px;">
<%#Eval("aName") %></div>
<div style="width: 150px;">
<%#Eval("aDiqu") %></div>
<div style="width: 130px;">
<%#Eval("aJiedao") %></div>
<div style="width: 170px;">
<%#Eval("aYoubuai") %></div>
<div style="width: 100px;">
<%#Eval("aPhone") %></div>
<div style="padding-left: 70px;">
</div>
</div>
</ItemTemplate>
</asp:Repeater>
public IQueryable<UserAddress> uadd;
DataClassesDataContext db = new DataClassesDataContext();
public int id = Convert.ToInt32(Session["userId"].ToString());
uadd = db.UserAddress.Where(j => j.uId == id);
Repeater2.DataSource = uadd;
Repeater2.DataBind();