|
<asp: DataList ID = "showList" runat = "server" EnableViewState = "false" RepeatDirection = "horizontal"
ItemStyle-Height = "100px" ItemStyle-Width = "50px" ItemStyle-BorderWidth = "1px">
<ItemTemplate>
<a href ='<%# DataBinder.Eval(Container.Item,"picUrl") %>? picid = <% # DataBinder.Eval (Container.Item, "picID")%> '>
<asp: Image ID = "picture" runat = "server" ImageUrl = '<% # DataBinder.Eval (Container.Item, "smallUrl")%>' />
</a>
</ ItemTemplate>
</ asp: DataList>
Prompt error: "System.Web.UI.WebControls.DataListItem" does not contain the definition of "Item"
What's going on, the elements can be defined in the DataList! !! !! Woo ... wow ... |
|