i found an compilation errors with the code as below. I am using asp.net framework 2.0 in vb language: 'DataItem' is not a member of 'System.Web.UI.Page' How to proceed? ----------------------------------------------------------------- <asp:repeater ID="rptLinks1" runat="Server"> <ItemTemplate> <table> <tr> <td><%# container.DataItem("tutorial_chapter") %></td> </tr> <tr> <td><asp:HyperLink ID="HyperLink4" runat="server" Text='<%# container.DataItem("tutorial_subject") %>' NavigateUrl='<%# container.DataItem("tutorial_hyperlink") %>'></asp:HyperLink></td> </tr> </table> </itemtemplate> </asp:repeater> </td> <td style="width: 293px"><asp:Label runat="server" Text='<%# Container.DataItem("tut_text") %>' ID="lblTextDesc" Height="271px" Width="278px" /></td> <td><asp:Image ID="imgSwf" runat="server" Height="273px" ImageAlign="Right" ImageUrl='<%#Container.DataItem("tut_image")%>' Width="214px" /></td>
I believe your missing the eval part in your HTML code something like this should work <a href="<%# DataBinder.Eval(Container.DataItem, "URL") %>"> <%# DataBinder.Eval(Container.DataItem, "Name") %></a>
you are using <%# Container.DataItem("tut_text") %> out of repeater item template that's why it can't find the property "Container" <asp:repeater ID="rptLinks1" runat="Server"> <ItemTemplate> <table> <tr> <td><%# container.DataItem("tutorial_chapter") %></td> </tr> <tr> <td><asp:HyperLink ID="HyperLink4" runat="server" Text='<%# container.DataItem("tutorial_subject") %>' NavigateUrl='<%# container.DataItem("tutorial_hyperlink") %>'></asp:HyperLink></td> </tr> </table> </itemtemplate> </asp:repeater> </td> <td style="width: 293px"> Problem IS here --> <asp:Label runat="server" Text='<%# Container.DataItem("tut_text") %>' ID="lblTextDesc" Height="271px" Width="278px" /></td> <td> and here --> <asp:Image ID="imgSwf" runat="server" Height="273px" ImageAlign="Right" ImageUrl='<%#Container.DataItem("tut_image")%>' Width="214px" /></td> Code (markup):
I'm not alone for this problems. But Its fixed. Thanks for the info too. regards, Esaul Daris http://www.CarInsuranceZine.com